Class: Lightswitch::ScheduleCollection

Inherits:
Object
  • Object
show all
Includes:
DataMapper::Resource, ScheduleCollectionMixin
Defined in:
lib/lightswitch/models.rb

Instance Method Summary collapse

Methods included from ScheduleCollectionMixin

#down?, #up?

Methods included from ScheduleCommon

#decode_state, #encode_state, #get_schedule_state_change

Instance Method Details

#to_sObject



14
15
16
# File 'lib/lightswitch/models.rb', line 14

def to_s
  "Schedule collection #{name}" + (schedules.empty? ? "" : " with schedules: " + schedules.collect(&:to_s).join("\n"))
end