Class: ChannelInfo
- Inherits:
-
Object
- Object
- ChannelInfo
- Defined in:
- lib/top_video.rb
Instance Attribute Summary collapse
-
#average ⇒ Object
Returns the value of attribute average.
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#total ⇒ Object
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(channel) ⇒ ChannelInfo
constructor
A new instance of ChannelInfo.
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
#average ⇒ Object
Returns the value of attribute average.
7 8 9 |
# File 'lib/top_video.rb', line 7 def average @average end |
#channel ⇒ Object
Returns the value of attribute channel.
6 7 8 |
# File 'lib/top_video.rb', line 6 def channel @channel end |
#total ⇒ Object
Returns the value of attribute total.
8 9 10 |
# File 'lib/top_video.rb', line 8 def total @total end |