Class: Tmdb::Season
Class Method Summary collapse
-
.cast(id, season, conditions = {}) ⇒ Object
Get the cast credits for a TV season by season number.
-
.crew(id, season, conditions = {}) ⇒ Object
Get the crew credits for a TV season by season number.
-
.detail(id, season, conditions = {}) ⇒ Object
Get the primary information about a TV season by its season number.
-
.external_ids(id, season, conditions = {}) ⇒ Object
Get the external ids that we have stored for a TV season by season number.
-
.images(id, season, conditions = {}) ⇒ Object
Get the images (posters) that we have stored for a TV season by season number.
Methods inherited from Resource
endpoint_id, endpoints, has_resource, #initialize, list, search
Constructor Details
This class inherits a constructor from Tmdb::Resource
Class Method Details
.cast(id, season, conditions = {}) ⇒ Object
Get the cast credits for a TV season by season number.
13 14 15 16 |
# File 'lib/themoviedb-jzg/season.rb', line 13 def self.cast(id, season, conditions={}) search = Tmdb::Search.new("/tv/#{self.endpoint_id + id.to_s}/#{self.endpoints[:singular]}/#{self.endpoint_id + season.to_s}/credits") search.fetch_response.cast end |
.crew(id, season, conditions = {}) ⇒ Object
Get the crew credits for a TV season by season number.
19 20 21 22 |
# File 'lib/themoviedb-jzg/season.rb', line 19 def self.crew(id, season, conditions={}) search = Tmdb::Search.new("/tv/#{self.endpoint_id + id.to_s}/#{self.endpoints[:singular]}/#{self.endpoint_id + season.to_s}/credits") search.fetch_response.crew end |
.detail(id, season, conditions = {}) ⇒ Object
Get the primary information about a TV season by its season number.
6 7 8 9 10 |
# File 'lib/themoviedb-jzg/season.rb', line 6 def self.detail(id, season, conditions={}) search = Tmdb::Search.new("/tv/#{self.endpoint_id + id.to_s}/#{self.endpoints[:singular]}/#{self.endpoint_id + season.to_s}") search.filter(conditions) search.fetch_response end |
.external_ids(id, season, conditions = {}) ⇒ Object
Get the external ids that we have stored for a TV season by season number.
25 26 27 28 |
# File 'lib/themoviedb-jzg/season.rb', line 25 def self.external_ids(id, season, conditions={}) search = Tmdb::Search.new("/tv/#{self.endpoint_id + id.to_s}/#{self.endpoints[:singular]}/#{self.endpoint_id + season.to_s}/external_ids") search.fetch_response end |
.images(id, season, conditions = {}) ⇒ Object
Get the images (posters) that we have stored for a TV season by season number.
31 32 33 34 |
# File 'lib/themoviedb-jzg/season.rb', line 31 def self.images(id, season, conditions={}) search = Tmdb::Search.new("/tv/#{self.endpoint_id + id.to_s}/#{self.endpoints[:singular]}/#{self.endpoint_id + season.to_s}/images") search.fetch_response end |