Class: TvrageApi::Info

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

Instance Method Summary collapse

Instance Method Details

#find(options = {}) ⇒ Object

Quick information about tv show

access: FREE param: options hash

show: TV show name
ep: episode name, format [Season Number]x[Episode Number, with zero at the beginning for 1-9] (optional)
exact: 1, Only shows that match exactly will be given.

output: Faraday::Response instance with string



10
11
12
# File 'lib/tvrage_api/info.rb', line 10

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

#find_url(options = {}) ⇒ Object

Quick information about tv show - return only url

access: FREE param: options hash

show: TV show name
ep: episode name, format [Season Number]x[Episode Number, with zero at the beginning for 1-9] (optional)
exact: 1, Only shows that match exactly will be given.

output: url string



22
23
24
# File 'lib/tvrage_api/info.rb', line 22

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