Class: TvrageApi::Recap

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

Instance Method Summary collapse

Instance Method Details

#allObject

All recaps

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



6
7
8
# File 'lib/tvrage_api/recap.rb', line 6

def all
  path(all_path).get
end

#all_urlObject

All recaps - return only url

access: FREE output: url string



14
15
16
# File 'lib/tvrage_api/recap.rb', line 14

def all_url
  path(all_path).url
end

#last(options = {}) ⇒ Object

Latest Recaps

access: FREE param: options hash

days: last x days (default 30)

output: Faraday::Response instance with parsed XML string



44
45
46
# File 'lib/tvrage_api/recap.rb', line 44

def last(options = {})
  last_path_with_params(options).get
end

#last_url(options = {}) ⇒ Object

Latest Recaps - return only url

access: FREE param: options hash

days: last x days (default 30)

output: url string



54
55
56
# File 'lib/tvrage_api/recap.rb', line 54

def last_url(options = {})
  last_path_with_params(options).url
end

#show(options = {}) ⇒ Object

Recaps From Selected Show

access: FREE param: options hash

show: TV show ID

output: Faraday::Response instance with parsed XML string



24
25
26
# File 'lib/tvrage_api/recap.rb', line 24

def show(options = {})
  show_path_with_params(options).get
end

#show_url(options = {}) ⇒ Object

Recaps From Selected Show - return only url

access: FREE param: options hash

show: TV show ID

output: url string



34
35
36
# File 'lib/tvrage_api/recap.rb', line 34

def show_url(options = {})
  show_path_with_params(options).url
end