Class: Lightswitch::ScheduleCollection
- Inherits:
-
Object
- Object
- Lightswitch::ScheduleCollection
- Includes:
- DataMapper::Resource, ScheduleCollectionMixin
- Defined in:
- lib/lightswitch/models.rb
Instance Method Summary collapse
Methods included from ScheduleCollectionMixin
Methods included from ScheduleCommon
#decode_state, #encode_state, #get_schedule_state_change
Instance Method Details
#to_s ⇒ Object
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 |