Class: Scheduling::CompoundSchedule

Inherits:
Struct
  • Object
show all
Defined in:
lib/scheduling/schedule/compound_schedule.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#schedulesObject

Returns the value of attribute schedules

Returns:

  • (Object)

    the current value of 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