Class: RTV::Program

Inherits:
Object
  • Object
show all
Defined in:
lib/rtv.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProgram

Returns a new instance of Program.



58
59
60
# File 'lib/rtv.rb', line 58

def initialize
  @channel = {}
end

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel.



56
57
58
# File 'lib/rtv.rb', line 56

def channel
  @channel
end

Instance Method Details

#<<(show) ⇒ Object



61
62
63
64
# File 'lib/rtv.rb', line 61

def << show
  @channel[show.channel] ||= []
  @channel[show.channel] << show
end