Class: Sentry::Cron::MonitorSchedule::Crontab
- Inherits:
-
Object
- Object
- Sentry::Cron::MonitorSchedule::Crontab
- Defined in:
- lib/sentry/cron/monitor_schedule.rb
Instance Attribute Summary collapse
-
#value ⇒ String
A crontab formatted string such as “0 * * * *”.
Instance Method Summary collapse
-
#initialize(value) ⇒ Crontab
constructor
A new instance of Crontab.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ Crontab
Returns a new instance of Crontab.
11 12 13 |
# File 'lib/sentry/cron/monitor_schedule.rb', line 11 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ String
A crontab formatted string such as “0 * * * *”.
9 10 11 |
# File 'lib/sentry/cron/monitor_schedule.rb', line 9 def value @value end |
Instance Method Details
#to_hash ⇒ Object
15 16 17 |
# File 'lib/sentry/cron/monitor_schedule.rb', line 15 def to_hash { type: :crontab, value: value } end |