Class: ThetvdbApi::Search

Inherits:
Base
  • Object
show all
Defined in:
lib/thetvdb_api/search.rb

Instance Attribute Summary

Attributes inherited from Base

#client, #options, #uri

Instance Method Summary collapse

Methods inherited from Base

#api_key, #api_url, #get, #initialize, #language, #request_options, #response, #series_uri

Constructor Details

This class inherits a constructor from ThetvdbApi::Base

Instance Method Details

#get_episode_by_air_date(series_id, air_date, language = self.language) ⇒ Object



14
15
16
17
# File 'lib/thetvdb_api/search.rb', line 14

def get_episode_by_air_date(series_id, air_date, language = self.language)
  get('GetEpisodeByAirDate.php', apikey: self.api_key, seriesid: series_id, airdate: air_date, language: language).
    response
end

#get_series(name, language = self.language) ⇒ Object



2
3
4
# File 'lib/thetvdb_api/search.rb', line 2

def get_series(name, language = self.language)
  get('GetSeries.php', seriesname: name, language: language).response
end

#get_series_by_imdb_id(id, language = self.language) ⇒ Object



6
7
8
# File 'lib/thetvdb_api/search.rb', line 6

def get_series_by_imdb_id(id, language = self.language)
  get('GetSeriesByRemoteID.php', imdbid: id, language: language).response
end

#get_series_by_zap2it_id(id, language = self.language) ⇒ Object



10
11
12
# File 'lib/thetvdb_api/search.rb', line 10

def get_series_by_zap2it_id(id, language = self.language)
  get('GetSeriesByRemoteID.php', zap2it: id, language: language).response
end