Sha256: 4684012ab58f7d492d70f2ba6a5c1737b55207d07cf345ac4e2386b26a31b418
Contents?: true
Size: 437 Bytes
Versions: 5
Compression:
Stored size: 437 Bytes
Contents
## # NPR::Entity::Author # module NPR module Entity class Author < Base attr_accessor :id, :num shallow_attribute "title" has_one "link", :class_name => NPR::Entity::Link #----------------- def initialize(json) @id = json["id"].to_i @num = json["num"].to_i create_relations(json) extract_shallow_attributes(json) end end # Author end # Entity end # NPR
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
npr-3.0.0 | lib/npr/entity/author.rb |
npr-2.0.2 | lib/npr/entity/author.rb |
npr-2.0.1 | lib/npr/entity/author.rb |
npr-2.0.0 | lib/npr/entity/author.rb |
npr-1.2.0 | lib/npr/entity/author.rb |