Class: VideoList

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#percentObject

Returns the value of attribute percent.



19
20
21
# File 'lib/top_video.rb', line 19

def percent
  @percent
end

#videoObject

Returns the value of attribute video.



18
19
20
# File 'lib/top_video.rb', line 18

def video
  @video
end