Class: Sofa::TVRage::Schedule

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/sofa/tvrage/schedule.rb

Overview

This class will hold the full/quick schedule information as per the TVRage API.

Class Method Summary collapse

Class Method Details

.full(country) ⇒ Hash

Gets the full schedule for country

Parameters:

  • country (String)

    The country to query in (US, UK, NL)

Returns:

  • (Hash)

    The parsed XML of schedule information

See Also:



18
19
20
21
# File 'lib/sofa/tvrage/schedule.rb', line 18

def full(country)
  xml = get("/fullschedule.php", :query => {:country => country})
  xml["schedule"]
end