Class: Checkup::Notifier::Base
- Inherits:
-
Object
- Object
- Checkup::Notifier::Base
- Includes:
- Configuration::Helpers
- Defined in:
- lib/checkup/notifier/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#on_failure ⇒ Object
(also: #notify_on_failure?)
Returns the value of attribute on_failure.
-
#on_success ⇒ Object
(also: #notify_on_success?)
Returns the value of attribute on_success.
-
#on_warning ⇒ Object
(also: #notify_on_warning?)
Returns the value of attribute on_warning.
Instance Method Summary collapse
-
#initialize(model) {|_self| ... } ⇒ Base
constructor
A new instance of Base.
- #perform! ⇒ Object
Methods included from Configuration::Helpers
#clear_defaults!, #load_defaults!
Constructor Details
#initialize(model) {|_self| ... } ⇒ Base
Returns a new instance of Base.
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_failure ⇒ Object 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_success ⇒ Object 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_warning ⇒ Object 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 |