Class: TMDb::Changes
Constant Summary collapse
- ATTRIBUTES =
:changes, :page, :total_pages, :total_results
Class Method Summary collapse
-
.movies(options = {}) ⇒ Object
Public: Get a list of movie ids that have been edited.
Methods inherited from Base
Constructor Details
This class inherits a constructor from TMDb::Base
Class Method Details
.movies(options = {}) ⇒ Object
Public: Get a list of movie ids that have been edited. By default we show the last 24 hours and only 100 items per page. The maximum number of days that can be returned in a single request is 14.
options - The hash options used to filter the search (default: {}).
:page - Page. Minimum 1, maximum 1000.
:start_date - Start date (YYYY-MM-DD).
:end_date - End date (YYYY-MM-DD).
Examples
TMDb::Changes.movies
TMDb::Changes.movies(page: 1, start_date: '2013-03-22')
20 21 22 23 |
# File 'lib/tmdb-api/changes.rb', line 20 def self.movies( = {}) res = get('/movie/changes', query: ) res.success? ? Changes.new(res) : bad_response(res) end |