Class: VideoInfo::Providers::YoutubePlaylist
- Inherits:
-
Youtube
show all
- Defined in:
- lib/video_info/providers/youtubeplaylist.rb
Instance Attribute Summary collapse
#data, #options, #url, #video_id
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Youtube
#provider, #thumbnail_large, #thumbnail_large_2x, #thumbnail_maxres, #thumbnail_medium, #thumbnail_small
#available?, #embed_code, #stats, #thumbnail, #thumbnail_large_2x, #thumbnail_maxres
Constructor Details
#initialize(url, options = {}) ⇒ YoutubePlaylist
Returns a new instance of YoutubePlaylist.
Instance Attribute Details
#playlist_items_data ⇒ Object
Returns the value of attribute playlist_items_data.
8
9
10
|
# File 'lib/video_info/providers/youtubeplaylist.rb', line 8
def playlist_items_data
@playlist_items_data
end
|
Class Method Details
.usable?(url) ⇒ Boolean
20
21
22
|
# File 'lib/video_info/providers/youtubeplaylist.rb', line 20
def self.usable?(url)
url.match?(/((youtube\.com)\/playlist)|((youtube\.com)\/embed\/videoseries)/)
end
|
Instance Method Details
#date ⇒ Object
24
25
26
|
# File 'lib/video_info/providers/youtubeplaylist.rb', line 24
def date
nil
end
|
#duration ⇒ Object
28
29
30
|
# File 'lib/video_info/providers/youtubeplaylist.rb', line 28
def duration
nil
end
|
#embed_url ⇒ Object
40
41
42
|
# File 'lib/video_info/providers/youtubeplaylist.rb', line 40
def embed_url
"//www.youtube.com/embed/videoseries?list=#{playlist_id}"
end
|
#keywords ⇒ Object
32
33
34
|
# File 'lib/video_info/providers/youtubeplaylist.rb', line 32
def keywords
nil
end
|
#view_count ⇒ Object
36
37
38
|
# File 'lib/video_info/providers/youtubeplaylist.rb', line 36
def view_count
nil
end
|