Class: PerfectSched::ScheduleWithMetadata

Inherits:
Schedule
  • Object
show all
Includes:
ScheduleMetadataAccessors
Defined in:
lib/perfectsched/schedule.rb

Direct Known Subclasses

Task

Instance Attribute Summary

Attributes included from ScheduleMetadataAccessors

#attributes

Attributes inherited from Schedule

#key

Attributes included from Model

#client

Instance Method Summary collapse

Methods included from ScheduleMetadataAccessors

#cron, #data, #delay, #message, #next_run_time, #next_time, #timezone, #type

Methods inherited from Schedule

#delete!, #exists?, #metadata

Methods included from Model

#config

Constructor Details

#initialize(client, key, attributes) ⇒ ScheduleWithMetadata

Returns a new instance of ScheduleWithMetadata.



52
53
54
55
# File 'lib/perfectsched/schedule.rb', line 52

def initialize(client, key, attributes)
  super(client, key)
  @attributes = attributes
end

Instance Method Details

#inspectObject



57
58
59
# File 'lib/perfectsched/schedule.rb', line 57

def inspect
  "#<#{self.class} @key=#{@key.inspect} @attributes=#{@attributes.inspect}>"
end