Class: NetworkExecutive::OffAirSchedule
- Inherits:
-
ProgramSchedule
- Object
- ProgramSchedule
- NetworkExecutive::OffAirSchedule
- Defined in:
- lib/network_executive/off_air_schedule.rb
Instance Attribute Summary
Attributes inherited from ProgramSchedule
#duration, #program, #proxy, #start_time
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ OffAirSchedule
constructor
A new instance of OffAirSchedule.
- #occurrence_at(time) ⇒ Object
Methods inherited from ProgramSchedule
#method_missing, #occurs_at?, #play, #respond_to_missing?, #update, #whats_on?
Constructor Details
#initialize(options = {}) ⇒ OffAirSchedule
Returns a new instance of OffAirSchedule.
5 6 7 8 9 |
# File 'lib/network_executive/off_air_schedule.rb', line 5 def initialize( = {} ) [:duration] ||= 59.seconds super 'off_air', end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class NetworkExecutive::ProgramSchedule
Instance Method Details
#occurrence_at(time) ⇒ Object
11 12 13 14 15 |
# File 'lib/network_executive/off_air_schedule.rb', line 11 def occurrence_at( time ) end_time = time + duration ProgramSchedule::Occurrence.new time, duration, end_time end |