Class: Tmdb::Company

Inherits:
Resource show all
Defined in:
lib/themoviedb-jzg/company.rb

Constant Summary collapse

@@fields =
[
  :description,
  :headquarters,
  :homepage,
  :id,
  :logo_path,
  :name,
  :parent_company
]

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

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

Get the list of movies associated with a particular company.



21
22
23
24
# File 'lib/themoviedb-jzg/company.rb', line 21

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