Method: Sentry::Cron::MonitorConfig.from_interval
- Defined in:
- lib/sentry/cron/monitor_config.rb
.from_interval(num, unit, **options) ⇒ Object
37 38 39 40 41 |
# File 'lib/sentry/cron/monitor_config.rb', line 37 def self.from_interval(num, unit, **) return nil unless MonitorSchedule::Interval::VALID_UNITS.include?(unit) new(MonitorSchedule::Interval.new(num, unit), **) end |