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