Class: TvrageApi::Schedule

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

Instance Method Summary collapse

Instance Method Details

#full(options = {}) ⇒ Object

Full Schedule

access: FREE param: options hash

country: two chars country abbreviation (optional)
24_format: 1, time format (optional)

output: Faraday::Response instance with parsed XML string



29
30
31
# File 'lib/tvrage_api/schedule.rb', line 29

def full(options = {})
  full_path_with_params(options).get
end

#full_url(options = {}) ⇒ Object

Full Schedule - return only url

access: FREE param: options hash

country: two chars country abbreviation (optional)
24_format: 1, time format (optional)

output: url string



40
41
42
# File 'lib/tvrage_api/schedule.rb', line 40

def full_url(options = {})
  full_path_with_params(options).url
end

#quick(options = {}) ⇒ Object

Quick access to TV schedule

access: FREE param: options hash

country: two chars country abbreviation (optional)

output: Faraday::Response instance with string



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

def quick(options = {})
  quick_path_with_params(options).get
end

#quick_url(options = {}) ⇒ Object

Quick access to TV schedule - return only url

access: FREE param: options hash

country: two chars country abbreviation (optional)

output: url string



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

def quick_url(options = {})
  quick_path_with_params(options).url
end