Class: Tmdb::Company
Constant Summary collapse
- @@fields =
[ :description, :headquarters, :homepage, :id, :logo_path, :name, :parent_company ]
Class Method Summary collapse
-
.movies(id, conditions = {}) ⇒ Object
Get the list of movies associated with a particular company.
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 |