Class: Tmdby::Keywords

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

Class Method Summary collapse

Methods inherited from Wrapper

add_default_language, fetch, handle_post_params, route, verify_params

Class Method Details

.get(id) ⇒ Object

Get the basic information for a specific keyword id.



7
8
9
# File 'lib/tmdby/wrappers/keywords.rb', line 7

def self.get(id)
  self.fetch id
end

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

Get the list of movies for a particular keyword by id.



12
13
14
15
16
# File 'lib/tmdby/wrappers/keywords.rb', line 12

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