Class: ThetvdbApi::Search
- Inherits:
-
Base
- Object
- Base
- ThetvdbApi::Search
show all
- Defined in:
- lib/thetvdb_api/search.rb
Instance Method Summary
collapse
Methods inherited from Base
#api_key, #connection, #get, #initialize, #language, #params, #prepare_uri, #response, #restful_param_keys, #series_uri, #uri, #url
Instance Method Details
#get_episode(series_id, air_date, options = {}) ⇒ Object
14
15
16
|
# File 'lib/thetvdb_api/search.rb', line 14
def get_episode(series_id, air_date, options = {})
get('GetEpisodeByAirDate.php').params({ seriesid: series_id, airdate: air_date }.merge(options)).response
end
|
#get_series(name, options = {}) ⇒ Object
2
3
4
|
# File 'lib/thetvdb_api/search.rb', line 2
def get_series(name, options = {})
get('GetSeries.php').params({ seriesname: name }.merge(options)).response
end
|
#get_series_by_imdb_id(id, options = {}) ⇒ Object
6
7
8
|
# File 'lib/thetvdb_api/search.rb', line 6
def get_series_by_imdb_id(id, options = {})
get('GetSeriesByRemoteID.php').params({ imdbid: id }.merge(options)).response
end
|
#get_series_by_zap2it_id(id, options = {}) ⇒ Object
10
11
12
|
# File 'lib/thetvdb_api/search.rb', line 10
def get_series_by_zap2it_id(id, options = {})
get('GetSeriesByRemoteID.php').params({ zap2it: id }.merge(options)).response
end
|