Class: Checkup::Notifier::Base

Inherits:
Object
  • Object
show all
Includes:
Configuration::Helpers
Defined in:
lib/checkup/notifier/base.rb

Direct Known Subclasses

Mail

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Configuration::Helpers

#clear_defaults!, #load_defaults!

Constructor Details

#initialize(model) {|_self| ... } ⇒ Base

Returns a new instance of Base.

Yields:

  • (_self)

Yield Parameters:



15
16
17
18
19
20
# File 'lib/checkup/notifier/base.rb', line 15

def initialize(model)
  @model = model
  load_defaults!
  
  yield self
end

Instance Attribute Details

#on_failureObject Also known as: notify_on_failure?

Returns the value of attribute on_failure.



12
13
14
# File 'lib/checkup/notifier/base.rb', line 12

def on_failure
  @on_failure
end

#on_successObject Also known as: notify_on_success?

Returns the value of attribute on_success.



6
7
8
# File 'lib/checkup/notifier/base.rb', line 6

def on_success
  @on_success
end

#on_warningObject Also known as: notify_on_warning?

Returns the value of attribute on_warning.



9
10
11
# File 'lib/checkup/notifier/base.rb', line 9

def on_warning
  @on_warning
end

Instance Method Details

#perform!Object



22
23
# File 'lib/checkup/notifier/base.rb', line 22

def perform!
end