Class: TvrageApi::Show

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

Instance Method Summary collapse

Instance Method Details

#allObject

Full Show List

access: FREE output: Faraday::Response instance with string



90
91
92
# File 'lib/tvrage_api/show.rb', line 90

def all
  path(all_path).get
end

#all_urlObject

Full Show List - return only url

access: FREE output: url string



99
100
101
# File 'lib/tvrage_api/show.rb', line 99

def all_url
  path(all_path).url
end

#episode(options = {}) ⇒ Object

Episode Info

access: FREE param: options hash

sid: TV show ID
ep: episode name, format [Season Number]x[Episode Number, with zero at the beginning for 1-9]

output: Faraday::Response instance with string



70
71
72
# File 'lib/tvrage_api/show.rb', line 70

def episode(options = {})
  episode_path_with_params(options).get
end

#episode_url(options = {}) ⇒ Object

Episode Info - return only url

access: FREE param: options hash

sid: TV show ID
ep: episode name, format [Season Number]x[Episode Number, with zero at the beginning for 1-9]

output: url string



82
83
84
# File 'lib/tvrage_api/show.rb', line 82

def episode_url(options = {})
  episode_path_with_params(options).url
end

#episodes(options = {}) ⇒ Object

Episode List

access: FREE param: options hash

sid: TV show ID

output: Faraday::Response instance with string



48
49
50
# File 'lib/tvrage_api/show.rb', line 48

def episodes(options = {})
  episodes_path_with_params(options).get
end

#episodes_url(options = {}) ⇒ Object

Episode List

access: FREE param: options hash

sid: TV show ID

output: url string



59
60
61
# File 'lib/tvrage_api/show.rb', line 59

def episodes_url(options = {})
  episodes_path_with_params(options).url
end

#find(options = {}) ⇒ Object

Show Info

access: FREE param: options hash

sid: TV show ID

output: Faraday::Response instance with string



8
9
10
# File 'lib/tvrage_api/show.rb', line 8

def find(options = {})
  find_path_with_params(options).get
end

#find_full(options = {}) ⇒ Object

Show Info + Episode List

access: FREE param: options hash

sid: TV show ID

output: Faraday::Response instance with string



28
29
30
# File 'lib/tvrage_api/show.rb', line 28

def find_full(options = {})
  find_full_path_with_params(options).get
end

#find_full_url(options = {}) ⇒ Object

Show Info + Episode List - return only url

access: FREE param: options hash

sid: TV show ID

output: url string



38
39
40
# File 'lib/tvrage_api/show.rb', line 38

def find_full_url(options = {})
  find_full_path_with_params(options).url
end

#find_url(options = {}) ⇒ Object

Show Info - return only url

access: FREE param: options hash

sid: TV show ID

output: url string



18
19
20
# File 'lib/tvrage_api/show.rb', line 18

def find_url(options = {})
  find_path_with_params(options).url
end