Class: ChannelInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel) ⇒ ChannelInfo

Returns a new instance of ChannelInfo.



10
11
12
13
14
# File 'lib/top_video.rb', line 10

def initialize(channel)
  @channel = channel
  @average = 0
  @total = 0
end

Instance Attribute Details

#averageObject

Returns the value of attribute average.



7
8
9
# File 'lib/top_video.rb', line 7

def average
  @average
end

#channelObject

Returns the value of attribute channel.



6
7
8
# File 'lib/top_video.rb', line 6

def channel
  @channel
end

#totalObject

Returns the value of attribute total.



8
9
10
# File 'lib/top_video.rb', line 8

def total
  @total
end