Class: Tmdb::Collection

Inherits:
Resource show all
Defined in:
lib/themoviedb/collection.rb

Constant Summary collapse

@@fields =
[
  :backdrop_path,
  :id,
  :name,
  :parts,
  :poster_path
]

Class Method Summary collapse

Methods inherited from Resource

detail, endpoint_id, endpoints, has_resource, #initialize, list, search

Constructor Details

This class inherits a constructor from Tmdb::Resource

Class Method Details

.images(id, conditions = {}) ⇒ Object

Get all of the images for a particular collection by collection id.


19
20
21
22
# File 'lib/themoviedb/collection.rb', line 19

def self.images(id, conditions={})
  search = Tmdb::Search.new("/#{self.endpoints[:singular]}/#{self.endpoint_id + id.to_s}/images")
  search.fetch_response
end