Class: Episodic::Platform::EpisodesResponse

Inherits:
CollectionResponse show all
Defined in:
lib/episodic/platform/query_methods.rb

Overview

Extends Episodic::Platform::CollectionResponse to handle a collection of episodes 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

#episodesObject

Get the list of episodes from the response.

Returns

Array

An array of Episodic::Platform::EpisodeItem objects.



277
278
279
280
# File 'lib/episodic/platform/query_methods.rb', line 277

def episodes
  @episode_items ||= @parsed_body["episode"].collect {|e| EpisodeItem.new(e)}
  return @episode_items
end