Module: PerfectSched::ScheduleMetadataAccessors
- Included in:
- ScheduleWithMetadata
- Defined in:
- lib/perfectsched/schedule_metadata.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
- #cron ⇒ Object
- #data ⇒ Object
- #delay ⇒ Object
- #message ⇒ Object
- #next_run_time ⇒ Object (also: #scheduled_run_time)
- #next_time ⇒ Object (also: #scheduled_time)
- #timezone ⇒ Object
- #type ⇒ Object
Instance Attribute Details
#attributes ⇒ Object (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
#cron ⇒ Object
32 33 34 |
# File 'lib/perfectsched/schedule_metadata.rb', line 32 def cron @attributes[:cron] end |
#data ⇒ Object
28 29 30 |
# File 'lib/perfectsched/schedule_metadata.rb', line 28 def data @attributes[:data] end |
#delay ⇒ Object
36 37 38 |
# File 'lib/perfectsched/schedule_metadata.rb', line 36 def delay @attributes[:delay] end |
#message ⇒ Object
56 57 58 |
# File 'lib/perfectsched/schedule_metadata.rb', line 56 def @attributes[:message] end |
#next_run_time ⇒ Object 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_time ⇒ Object Also known as: scheduled_time
44 45 46 |
# File 'lib/perfectsched/schedule_metadata.rb', line 44 def next_time @attributes[:next_time] end |
#timezone ⇒ Object
40 41 42 |
# File 'lib/perfectsched/schedule_metadata.rb', line 40 def timezone @attributes[:timezone] end |
#type ⇒ Object
24 25 26 |
# File 'lib/perfectsched/schedule_metadata.rb', line 24 def type @attributes[:type] end |