Class: NPR::Entity::Audio
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(json) ⇒ Audio
constructor
——————-.
Methods included from Concern::ShallowAttributes
Methods included from Concern::Relation
Constructor Details
#initialize(json) ⇒ Audio
15 16 17 18 19 20 21 |
# File 'lib/npr/entity/audio.rb', line 15 def initialize(json) @id = json["id"].to_i @type = json["type"] create_relations(json) extract_shallow_attributes(json) end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/npr/entity/audio.rb', line 7 def id @id end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/npr/entity/audio.rb', line 7 def type @type end |