Class: PerfectSched::ScheduleMetadata
Instance Attribute Summary
#attributes
Attributes included from Model
#client
Instance Method Summary
collapse
#cron, #data, #delay, #message, #next_run_time, #next_time, #timezone, #type
Methods included from Model
#config
Constructor Details
#initialize(client, key, attributes) ⇒ ScheduleMetadata
64
65
66
67
|
# File 'lib/perfectsched/schedule_metadata.rb', line 64
def initialize(client, key, attributes)
super(client)
@key = key
end
|
Instance Method Details
#inspect ⇒ Object
73
74
75
|
# File 'lib/perfectsched/schedule_metadata.rb', line 73
def inspect
"#<#{self.class} @key=#{@key.inspect} @attributes=#{@attributes.inspect}>"
end
|
#schedule ⇒ Object
69
70
71
|
# File 'lib/perfectsched/schedule_metadata.rb', line 69
def schedule
Schedule.new(@client, @key)
end
|