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