Method: Guide#current_program_on_channel

Defined in:
lib/data_services/guide.rb

#current_program_on_channel(tms_guide_id) ⇒ Object



80
81
82
83
# File 'lib/data_services/guide.rb', line 80

def current_program_on_channel tms_guide_id
  now = Time.now
  @schedule.select { |s| s.tms_guide_id == tms_guide_id  && s.start_time < now  &&  s.end_time > now}.first
end