Class: PerfectSched::ScheduleMetadata

Inherits:
Object
  • Object
show all
Includes:
Model, ScheduleMetadataAccessors
Defined in:
lib/perfectsched/schedule_metadata.rb

Instance Attribute Summary

Attributes included from ScheduleMetadataAccessors

#attributes

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 included from Model

#config

Constructor Details

#initialize(client, key, attributes) ⇒ ScheduleMetadata

Returns a new instance of 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

#inspectObject



73
74
75
# File 'lib/perfectsched/schedule_metadata.rb', line 73

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

#scheduleObject



69
70
71
# File 'lib/perfectsched/schedule_metadata.rb', line 69

def schedule
  Schedule.new(@client, @key)
end