class CheckerJobs::Notifiers::Base

Public Class Methods

default_options() click to toggle source
# File lib/checker_jobs/notifiers/base.rb, line 10
def self.default_options
  raise NotImplementedError
end
new(check, _count, _entries) click to toggle source
# File lib/checker_jobs/notifiers/base.rb, line 2
def initialize(check, _count, _entries)
  @check = check
end

Public Instance Methods

notify() click to toggle source
# File lib/checker_jobs/notifiers/base.rb, line 6
def notify
  raise NotImplementedError
end

Private Instance Methods

notifier_options() click to toggle source
# File lib/checker_jobs/notifiers/base.rb, line 16
def notifier_options
  CheckerJobs.configuration.notifiers_options.fetch(
    @check.klass.notifier,
    self.class.default_options,
  )
end