Class: Episodic::Platform::PlaylistsResponse

Inherits:
CollectionResponse show all
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

Methods inherited from CollectionResponse

#initialize, #method_missing, #respond_to?

Methods inherited from Response

#initialize, #xml

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

#playlistsObject

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