Class: ThetvdbApi::Series

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

Instance Method Summary collapse

Methods inherited from Base

#api_key_options, #api_key_with_language_options, #language_options, #normalize_episode_id_options, #normalize_series_id_absolute_options, #normalize_series_id_air_date_options, #normalize_series_id_episode_options, #normalize_series_id_options, #normalize_series_name_options

Instance Method Details

#find(*options) ⇒ Object

Find the series data by series id.

access: FREE param (flat params):

find(series_id)
find(1234)

param (hash params):

find(series_id: 1234)

output: Faraday::Response instance with parsed XML string example: thetvdb.com/wiki/index.php/API:Base_Series_Record



12
13
14
# File 'lib/thetvdb_api/series.rb', line 12

def find(*options)
  find_path_with_params(*options).get
end

#find_full(*options) ⇒ Object

Find the full series data by series id.

access: FREE param (flat params):

find_full(series_id)
find_full(1234)

param (hash params):

find_full(series_id: 1234)

output: Faraday::Response instance with parsed XML string example: thetvdb.com/wiki/index.php/API:Full_Series_Record



39
40
41
# File 'lib/thetvdb_api/series.rb', line 39

def find_full(*options)
  find_full_path_with_params(*options).get
end

#find_full_url(*options) ⇒ Object

Find the full series data by series id - return only url.

access: FREE param (flat params):

find_full_url(series_id)
find_full_url(1234)

param (hash params):

find_full_url(series_id: 1234)

output: url string



52
53
54
# File 'lib/thetvdb_api/series.rb', line 52

def find_full_url(*options)
  find_full_path_with_params(*options).url
end

#find_url(*options) ⇒ Object

Find the series data by series id - return only url.

access: FREE param (flat params):

find_url(series_id)
find_url(1234)

param (hash params):

find_url(series_id: 1234)

output: url string



25
26
27
# File 'lib/thetvdb_api/series.rb', line 25

def find_url(*options)
  find_path_with_params(*options).url
end