Class: NPR::Entity::Show

Inherits:
Base
  • Object
show all
Defined in:
lib/npr/entity/show.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Concern::ShallowAttributes

included

Methods included from Concern::Relation

included

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

#programObject

Returns the value of attribute program.



7
8
9
# File 'lib/npr/entity/show.rb', line 7

def program
  @program
end