Class: PerfectSched::ScheduleMetadata
- Inherits:
-
Object
- Object
- PerfectSched::ScheduleMetadata
- Includes:
- Model, ScheduleMetadataAccessors
- Defined in:
- lib/perfectsched/schedule_metadata.rb
Instance Attribute Summary
Attributes included from ScheduleMetadataAccessors
Attributes included from Model
Instance Method Summary collapse
-
#initialize(client, key, attributes) ⇒ ScheduleMetadata
constructor
A new instance of ScheduleMetadata.
- #inspect ⇒ Object
- #schedule ⇒ Object
Methods included from ScheduleMetadataAccessors
#cron, #data, #delay, #message, #next_run_time, #next_time, #timezone, #type
Methods included from Model
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
#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 |