Class: VideoStore::Video
- Inherits:
-
Object
- Object
- VideoStore::Video
- Defined in:
- lib/videostore.rb
Constant Summary collapse
- ATTRIBUTES =
:video_id, :title, :thumbnail_uri, :channel_name, :views, :likes, :comment_count, :duration
Instance Attribute Summary collapse
-
#channel_name ⇒ Object
readonly
Returns the value of attribute channel_name.
-
#comment_count ⇒ Object
readonly
Returns the value of attribute comment_count.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#likes ⇒ Object
readonly
Returns the value of attribute likes.
-
#thumbnail_uri ⇒ Object
readonly
Returns the value of attribute thumbnail_uri.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#video_id ⇒ Object
Returns the value of attribute video_id.
-
#views ⇒ Object
readonly
Returns the value of attribute views.
Instance Method Summary collapse
- #info ⇒ Object
-
#initialize ⇒ Video
constructor
A new instance of Video.
- #inspect ⇒ Object
Constructor Details
#initialize ⇒ Video
Returns a new instance of Video.
19 20 21 |
# File 'lib/videostore.rb', line 19 def initialize raise NoMethodError end |
Instance Attribute Details
#channel_name ⇒ Object (readonly)
Returns the value of attribute channel_name.
14 15 16 |
# File 'lib/videostore.rb', line 14 def channel_name @channel_name end |
#comment_count ⇒ Object (readonly)
Returns the value of attribute comment_count.
14 15 16 |
# File 'lib/videostore.rb', line 14 def comment_count @comment_count end |
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
14 15 16 |
# File 'lib/videostore.rb', line 14 def duration @duration end |
#likes ⇒ Object (readonly)
Returns the value of attribute likes.
14 15 16 |
# File 'lib/videostore.rb', line 14 def likes @likes end |
#thumbnail_uri ⇒ Object (readonly)
Returns the value of attribute thumbnail_uri.
14 15 16 |
# File 'lib/videostore.rb', line 14 def thumbnail_uri @thumbnail_uri end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
14 15 16 |
# File 'lib/videostore.rb', line 14 def title @title end |
#video_id ⇒ Object
Returns the value of attribute video_id.
13 14 15 |
# File 'lib/videostore.rb', line 13 def video_id @video_id end |
#views ⇒ Object (readonly)
Returns the value of attribute views.
14 15 16 |
# File 'lib/videostore.rb', line 14 def views @views end |
Instance Method Details
#info ⇒ Object
26 27 28 |
# File 'lib/videostore.rb', line 26 def info {} end |
#inspect ⇒ Object
23 24 25 |
# File 'lib/videostore.rb', line 23 def inspect info end |