Class: ThetvdbApi::Episode
- Inherits:
-
Base
- Object
- Base
- ThetvdbApi::Episode
show all
- Defined in:
- lib/thetvdb_api/episode.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
Instance Method Details
#find(episode_id, language = self.language) ⇒ Object
14
15
16
|
# File 'lib/thetvdb_api/episode.rb', line 14
def find(episode_id, language = self.language)
get("#{api_key}/episodes/#{episode_id}/#{language}.xml").response
end
|
#find_by_absolute_order(series_id, absolute, language = self.language) ⇒ Object
10
11
12
|
# File 'lib/thetvdb_api/episode.rb', line 10
def find_by_absolute_order(series_id, absolute, language = self.language)
get("#{series_uri(series_id)}absolute/#{absolute}/#{language}.xml").response
end
|
#find_by_default_order(series_id, season, episode, language = self.language) ⇒ Object
2
3
4
|
# File 'lib/thetvdb_api/episode.rb', line 2
def find_by_default_order(series_id, season, episode, language = self.language)
get("#{series_uri(series_id)}default/#{season}/#{episode}/#{language}.xml").response
end
|
#find_by_dvd_order(series_id, season, episode, language = self.language) ⇒ Object
6
7
8
|
# File 'lib/thetvdb_api/episode.rb', line 6
def find_by_dvd_order(series_id, season, episode, language = self.language)
get("#{series_uri(series_id)}dvd/#{season}/#{episode}/#{language}.xml").response
end
|