Class: Tmdb::Find
Class Method Summary
collapse
Methods inherited from Resource
detail, endpoint_id, endpoints, has_resource, #initialize, list, search
Constructor Details
This class inherits a constructor from Tmdb::Resource
Class Method Details
.freebase_id(id, conditions = {}) ⇒ Object
15
16
17
18
|
# File 'lib/themoviedb-jzg/find.rb', line 15
def self.freebase_id(id, conditions={})
search = Tmdb::Search.new("/#{self.endpoints[:singular]}/#{self.endpoint_id + id.to_s}")
search.fetch_response(external_source: 'freebase_id')
end
|
.freebase_mid(id, conditions = {}) ⇒ Object
10
11
12
13
|
# File 'lib/themoviedb-jzg/find.rb', line 10
def self.freebase_mid(id, conditions={})
search = Tmdb::Search.new("/#{self.endpoints[:singular]}/#{self.endpoint_id + id.to_s}")
search.fetch_response(external_source: 'freebase_mid')
end
|
.imdb_id(id, conditions = {}) ⇒ Object
5
6
7
8
|
# File 'lib/themoviedb-jzg/find.rb', line 5
def self.imdb_id(id, conditions={})
search = Tmdb::Search.new("/#{self.endpoints[:singular]}/#{self.endpoint_id + id.to_s}")
search.fetch_response(external_source: 'imdb_id')
end
|
.tvdb_id(id, conditions = {}) ⇒ Object
25
26
27
28
|
# File 'lib/themoviedb-jzg/find.rb', line 25
def self.tvdb_id(id, conditions={})
search = Tmdb::Search.new("/#{self.endpoints[:singular]}/#{self.endpoint_id + id.to_s}")
search.fetch_response(external_source: 'tvdb_id')
end
|
.tvrage_id(id, conditions = {}) ⇒ Object
20
21
22
23
|
# File 'lib/themoviedb-jzg/find.rb', line 20
def self.tvrage_id(id, conditions={})
search = Tmdb::Search.new("/#{self.endpoints[:singular]}/#{self.endpoint_id + id.to_s}")
search.fetch_response(external_source: 'tvrage_id')
end
|