Class: Tmdby::Companies

Inherits:
Wrapper show all
Defined in:
lib/tmdby/wrappers/companies.rb

Class Method Summary collapse

Methods inherited from Wrapper

add_default_language, fetch, handle_post_params, route, verify_params

Class Method Details

.get(id, optional_params = {}) ⇒ Object

This method is used to retrieve all of the basic information about a company.



7
8
9
10
11
# File 'lib/tmdby/wrappers/companies.rb', line 7

def self.get(id, optional_params = {})
  self.fetch id,
              optional_params,
              authorized_params: ["append_to_response"]
end

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



13
14
15
16
17
# File 'lib/tmdby/wrappers/companies.rb', line 13

def self.movies(id, optional_params = {})
  self.fetch "#{id}/movies",
              optional_params,
              authorized_params: ["page", "language", "append_to_response"]
end