Class: DataChecks::Notifiers::Notifier

Inherits:
Object
  • Object
show all
Defined in:
lib/data_checks/notifiers/notifier.rb

Direct Known Subclasses

EmailNotifier, LoggerNotifier, SlackNotifier

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Notifier

Returns a new instance of Notifier.



8
9
10
# File 'lib/data_checks/notifiers/notifier.rb', line 8

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/data_checks/notifiers/notifier.rb', line 6

def options
  @options
end

Instance Method Details

#notify(check_result) ⇒ Object

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/data_checks/notifiers/notifier.rb', line 12

def notify(check_result)
  raise NotImplementedError, "#{self.class.name} must implement a 'notify' method"
end