Class: YouTubeIt::Model::Playlist
- Defined in:
- lib/youtube_it/model/playlist.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#playlist_id ⇒ Object
readonly
Returns the value of attribute playlist_id.
-
#published ⇒ Object
readonly
Returns the value of attribute published.
-
#response_code ⇒ Object
readonly
Returns the value of attribute response_code.
-
#summary ⇒ Object
readonly
Returns the value of attribute summary.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
Methods inherited from Record
Constructor Details
This class inherits a constructor from YouTubeIt::Record
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'lib/youtube_it/model/playlist.rb', line 4 def description @description end |
#playlist_id ⇒ Object (readonly)
Returns the value of attribute playlist_id.
4 5 6 |
# File 'lib/youtube_it/model/playlist.rb', line 4 def playlist_id @playlist_id end |
#published ⇒ Object (readonly)
Returns the value of attribute published.
4 5 6 |
# File 'lib/youtube_it/model/playlist.rb', line 4 def published @published end |
#response_code ⇒ Object (readonly)
Returns the value of attribute response_code.
4 5 6 |
# File 'lib/youtube_it/model/playlist.rb', line 4 def response_code @response_code end |
#summary ⇒ Object (readonly)
Returns the value of attribute summary.
4 5 6 |
# File 'lib/youtube_it/model/playlist.rb', line 4 def summary @summary end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/youtube_it/model/playlist.rb', line 4 def title @title end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
4 5 6 |
# File 'lib/youtube_it/model/playlist.rb', line 4 def xml @xml end |
Instance Method Details
#videos ⇒ Object
5 6 7 |
# File 'lib/youtube_it/model/playlist.rb', line 5 def videos YouTubeIt::Parser::VideosFeedParser.new("http://gdata.youtube.com/feeds/api/playlists/#{playlist_id}?v=2").parse_videos end |