Class: Episodic::Platform::ShowsResponse

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

Overview

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

#showsObject

Get the list of shows from the response.

Returns

Array

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



258
259
260
261
# File 'lib/episodic/platform/query_methods.rb', line 258

def shows
  @show_items ||= @parsed_body["show"].collect {|e| ShowItem.new(e)}
  return @show_items
end