Class: Episodic::Platform::PlaylistsResponse
- Inherits:
-
CollectionResponse
- Object
- Response
- CollectionResponse
- Episodic::Platform::PlaylistsResponse
- Defined in:
- lib/episodic/platform/query_methods.rb
Overview
Extends Episodic::Platform::CollectionResponse
to handle a collection of playlists in the response.
Constant Summary
Constants inherited from CollectionResponse
CollectionResponse::COLLECTION_RESPONSE_ATTRIBUTES
Instance Method Summary collapse
-
#playlists ⇒ Object
Get the list of playlists from the response.
Methods inherited from CollectionResponse
#initialize, #method_missing, #respond_to?
Methods inherited from Response
Constructor Details
This class inherits a constructor from Episodic::Platform::CollectionResponse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Episodic::Platform::CollectionResponse
Instance Method Details
#playlists ⇒ Object
Get the list of playlists from the response.
Returns
- Array
-
An array of
Episodic::Platform::EpisodeItem
objects.
296 297 298 299 |
# File 'lib/episodic/platform/query_methods.rb', line 296 def playlists @playlist_items ||= @parsed_body["playlist"].collect {|e| PlaylistItem.new(e)} return @playlist_items end |