Class: Scheduling::CompoundSchedule
- Inherits:
-
Struct
- Object
- Struct
- Scheduling::CompoundSchedule
- Defined in:
- lib/scheduling/schedule/compound_schedule.rb
Instance Attribute Summary collapse
-
#schedules ⇒ Object
Returns the value of attribute schedules.
Instance Method Summary collapse
Instance Attribute Details
#schedules ⇒ Object
Returns the value of attribute schedules
2 3 4 |
# File 'lib/scheduling/schedule/compound_schedule.rb', line 2 def schedules @schedules end |
Instance Method Details
#occurances(date_range) ⇒ Object
3 4 5 |
# File 'lib/scheduling/schedule/compound_schedule.rb', line 3 def occurances date_range schedules.map {|sched| sched.occurances(date_range) }.flatten.uniq.sort end |