Class: VideoStore::Video

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

Direct Known Subclasses

Vimeo, Youtube

Constant Summary collapse

ATTRIBUTES =
:video_id, :title, :thumbnail_uri, :channel_name, :views,
:likes, :comment_count, :duration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeVideo

Returns a new instance of Video.

Raises:

  • (NoMethodError)


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

def initialize
  raise NoMethodError
end

Instance Attribute Details

#channel_nameObject (readonly)

Returns the value of attribute channel_name.



14
15
16
# File 'lib/videostore.rb', line 14

def channel_name
  @channel_name
end

#comment_countObject (readonly)

Returns the value of attribute comment_count.



14
15
16
# File 'lib/videostore.rb', line 14

def comment_count
  @comment_count
end

#durationObject (readonly)

Returns the value of attribute duration.



14
15
16
# File 'lib/videostore.rb', line 14

def duration
  @duration
end

#likesObject (readonly)

Returns the value of attribute likes.



14
15
16
# File 'lib/videostore.rb', line 14

def likes
  @likes
end

#thumbnail_uriObject (readonly)

Returns the value of attribute thumbnail_uri.



14
15
16
# File 'lib/videostore.rb', line 14

def thumbnail_uri
  @thumbnail_uri
end

#titleObject (readonly)

Returns the value of attribute title.



14
15
16
# File 'lib/videostore.rb', line 14

def title
  @title
end

#video_idObject

Returns the value of attribute video_id.



13
14
15
# File 'lib/videostore.rb', line 13

def video_id
  @video_id
end

#viewsObject (readonly)

Returns the value of attribute views.



14
15
16
# File 'lib/videostore.rb', line 14

def views
  @views
end

Instance Method Details

#infoObject



26
27
28
# File 'lib/videostore.rb', line 26

def info
  {}
end

#inspectObject



23
24
25
# File 'lib/videostore.rb', line 23

def inspect
  info
end