Class: Tmdb::Collection
- Defined in:
- lib/themoviedb/collection.rb
Constant Summary collapse
- @@fields =
[ :backdrop_path, :id, :name, :parts, :poster_path ]
Class Method Summary collapse
-
.images(id, _conditions = {}) ⇒ Object
Get all of the images for a particular collection by collection id.
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("/#{endpoints[:singular]}/#{endpoint_id + id.to_s}/images") search.fetch_response end |