Class: Nowtv::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/nowtv/client.rb

Constant Summary collapse

API_URL =
'http://www.tvguide.or.jp/TXML301PG.php?type=TVG&regionId='

Instance Method Summary collapse

Instance Method Details

#get_program_list(region_id) ⇒ Object



11
12
13
14
15
16
# File 'lib/nowtv/client.rb', line 11

def get_program_list(region_id)
  programs = get_programs(region_id)
  restruct_program_list(programs)
rescue
  raise ParseError, "Failed to parse program data"
end