Class: Tmdby::Changes

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

Class Method Summary collapse

Methods inherited from Wrapper

add_default_language, fetch, handle_post_params, route, verify_params

Class Method Details

.movie(optional_params = {}) ⇒ Object

Get a list of movie ids that have been edited Authorized params : page | start_date | end_date Example : Tmdby::Changes.movie_changes page:2



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

def self.movie(optional_params = {})
  self.fetch "movie/changes",
              optional_params,
              authorized_params: ['page', 'start_date', 'end_date']
end

.person(optional_params = {}) ⇒ Object

Get a list of people ids that have been edited Authorized params : page | start_date | end_date Example : Tmdby::Changes.person_changes page:2



16
17
18
19
20
# File 'lib/tmdby/wrappers/changes.rb', line 16

def self.person(optional_params = {})
  self.fetch "person/changes",
              optional_params,
              authorized_params: ['page', 'start_date', 'end_date']
end

.tv(optional_params = {}) ⇒ Object

Get a list of TV show ids that have been edited Authorized params : page | start_date | end_date Example : Tmdby::Changes.tv_changes page:2



25
26
27
28
29
# File 'lib/tmdby/wrappers/changes.rb', line 25

def self.tv(optional_params = {})
  self.fetch "tv/changes",
              optional_params,
              authorized_params: ['page', 'start_date', 'end_date']
end