Class: Sentry::Cron::MonitorSchedule::Crontab

Inherits:
Object
  • Object
show all
Defined in:
lib/sentry/cron/monitor_schedule.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueString

A crontab formatted string such as “0 * * * *”.

Returns:

  • (String)


9
10
11
# File 'lib/sentry/cron/monitor_schedule.rb', line 9

def value
  @value
end

Instance Method Details

#to_hashObject



15
16
17
# File 'lib/sentry/cron/monitor_schedule.rb', line 15

def to_hash
  { type: :crontab, value: value }
end