Class: VideoList
- Inherits:
-
Object
- Object
- VideoList
- Defined in:
- lib/top_video.rb
Instance Attribute Summary collapse
-
#percent ⇒ Object
Returns the value of attribute percent.
-
#video ⇒ Object
Returns the value of attribute video.
Instance Method Summary collapse
-
#initialize(video, percent) ⇒ VideoList
constructor
A new instance of VideoList.
Constructor Details
#initialize(video, percent) ⇒ VideoList
Returns a new instance of VideoList.
21 22 23 24 |
# File 'lib/top_video.rb', line 21 def initialize(video, percent) @video = video @percent = percent end |
Instance Attribute Details
#percent ⇒ Object
Returns the value of attribute percent.
19 20 21 |
# File 'lib/top_video.rb', line 19 def percent @percent end |
#video ⇒ Object
Returns the value of attribute video.
18 19 20 |
# File 'lib/top_video.rb', line 18 def video @video end |