Class: NPR::Entity::Show
Instance Attribute Summary collapse
-
#program ⇒ Object
Returns the value of attribute program.
Instance Method Summary collapse
-
#initialize(json) ⇒ Show
constructor
A new instance of Show.
Methods included from Concern::ShallowAttributes
Methods included from Concern::Relation
Constructor Details
#initialize(json) ⇒ Show
Returns a new instance of Show.
10 11 12 13 14 15 16 |
# File 'lib/npr/entity/show.rb', line 10 def initialize(json) extract_shallow_attributes(json) if program = json["program"] @program = NPR::Entity::Program.new(program) end end |
Instance Attribute Details
#program ⇒ Object
Returns the value of attribute program.
7 8 9 |
# File 'lib/npr/entity/show.rb', line 7 def program @program end |