Module: PerfectSched::ScheduleMetadataAccessors

Included in:
ScheduleWithMetadata
Defined in:
lib/perfectsched/schedule_metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



22
23
24
# File 'lib/perfectsched/schedule_metadata.rb', line 22

def attributes
  @attributes
end

Instance Method Details

#cronObject



32
33
34
# File 'lib/perfectsched/schedule_metadata.rb', line 32

def cron
  @attributes[:cron]
end

#dataObject



28
29
30
# File 'lib/perfectsched/schedule_metadata.rb', line 28

def data
  @attributes[:data]
end

#delayObject



36
37
38
# File 'lib/perfectsched/schedule_metadata.rb', line 36

def delay
  @attributes[:delay]
end

#messageObject



56
57
58
# File 'lib/perfectsched/schedule_metadata.rb', line 56

def message
  @attributes[:message]
end

#next_run_timeObject Also known as: scheduled_run_time



48
49
50
# File 'lib/perfectsched/schedule_metadata.rb', line 48

def next_run_time
  @attributes[:next_run_time]
end

#next_timeObject Also known as: scheduled_time



44
45
46
# File 'lib/perfectsched/schedule_metadata.rb', line 44

def next_time
  @attributes[:next_time]
end

#timezoneObject



40
41
42
# File 'lib/perfectsched/schedule_metadata.rb', line 40

def timezone
  @attributes[:timezone]
end

#typeObject



24
25
26
# File 'lib/perfectsched/schedule_metadata.rb', line 24

def type
  @attributes[:type]
end