Sha256: 979344037c4e00b496e28eba69c2465bd03ccccf33cfd36736a71e2a6a4ac878
Contents?: true
Size: 408 Bytes
Versions: 4
Compression:
Stored size: 408 Bytes
Contents
## # NPR::Entity::Book # module NPR module Entity class Book < Base attr_accessor :id shallow_attribute "title" has_one "link", :class_name => NPR::Entity::Link #--------------------- def initialize(json) @id = json["id"].to_i extract_shallow_attributes(json) create_relations(json) end end # Book end # Entity end # NPR
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
npr-1.1.0 | lib/npr/entity/book.rb |
npr-0.1.2 | lib/npr/entity/book.rb |
npr-0.1.1 | lib/npr/entity/book.rb |
npr-0.1.0 | lib/npr/entity/book.rb |