Class: NPR::Entity::Byline
- Includes:
- Concern::LinksAssociation
- Defined in:
- lib/npr/entity/byline.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(json) ⇒ Byline
constructor
—————–.
Methods included from Concern::LinksAssociation
Methods included from Concern::ShallowAttributes
Methods included from Concern::Relation
Constructor Details
#initialize(json) ⇒ Byline
14 15 16 17 |
# File 'lib/npr/entity/byline.rb', line 14 def initialize(json) @id = json["id"].to_i create_relations(json) end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
9 10 11 |
# File 'lib/npr/entity/byline.rb', line 9 def id @id end |