Class: YouTubeIt::Model::Playlist

Inherits:
Record
  • Object
show all
Defined in:
lib/youtube_it/model/playlist.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Record

#initialize

Constructor Details

This class inherits a constructor from YouTubeIt::Record

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



4
5
6
# File 'lib/youtube_it/model/playlist.rb', line 4

def description
  @description
end

#playlist_idObject (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

#publishedObject (readonly)

Returns the value of attribute published.



4
5
6
# File 'lib/youtube_it/model/playlist.rb', line 4

def published
  @published
end

#response_codeObject (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

#summaryObject (readonly)

Returns the value of attribute summary.



4
5
6
# File 'lib/youtube_it/model/playlist.rb', line 4

def summary
  @summary
end

#titleObject (readonly)

Returns the value of attribute title.



4
5
6
# File 'lib/youtube_it/model/playlist.rb', line 4

def title
  @title
end

#xmlObject (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

#videosObject



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