Class: Episodic::Platform::ThumbnailItem
- Defined in:
- lib/episodic/platform/query_methods.rb
Overview
Represents a thumbnail element in a response.
Instance Method Summary collapse
-
#url ⇒ Object
Since the URL is stored in the element content we need to explicitly define this method to get the URL for a thumbnail.
Methods inherited from Item
#exists?, #id, #initialize, #method_missing, #players, #respond_to?, #thumbnails
Constructor Details
This class inherits a constructor from Episodic::Platform::Item
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Episodic::Platform::Item
Instance Method Details
#url ⇒ Object
Since the URL is stored in the element content we need to explicitly define this method to get the URL for a thumbnail.
Returns
- String
-
The URL to the thumbnail.
578 579 580 |
# File 'lib/episodic/platform/query_methods.rb', line 578 def url return @item["content"] end |