Class: Backup::Configuration::Notifier::Base

Inherits:
Base
  • Object
show all
Defined in:
lib/backup/configuration/notifier/base.rb

Direct Known Subclasses

Mail, Twitter

Class Attribute Summary collapse

Method Summary

Methods inherited from Base

defaults

Methods included from Helpers

#clear_defaults!, #getter_methods, #load_defaults!, #setter_methods

Class Attribute Details

.on_failureObject

When @on_failure is nil it means it hasn’t been defined and will then default to true



32
33
34
35
# File 'lib/backup/configuration/notifier/base.rb', line 32

def self.on_failure
  return true if @on_failure.nil?
  @on_failure
end

.on_successObject

When @on_success is nil it means it hasn’t been defined and will then default to true



24
25
26
27
# File 'lib/backup/configuration/notifier/base.rb', line 24

def self.on_success
  return true if @on_success.nil?
  @on_success
end