Class: SidekiqVigil::Notifier::Base
- Inherits:
-
Object
- Object
- SidekiqVigil::Notifier::Base
- Defined in:
- lib/sidekiq_vigil/notifier/base.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options: {}, logger: SidekiqVigil.logger, **_dependencies) ⇒ Base
constructor
A new instance of Base.
- #inspect ⇒ Object
- #notify(_event) ⇒ Object
Constructor Details
#initialize(options: {}, logger: SidekiqVigil.logger, **_dependencies) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/sidekiq_vigil/notifier/base.rb', line 8 def initialize(options: {}, logger: SidekiqVigil.logger, **_dependencies) @options = @logger = logger end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
6 7 8 |
# File 'lib/sidekiq_vigil/notifier/base.rb', line 6 def logger @logger end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/sidekiq_vigil/notifier/base.rb', line 6 def @options end |
Instance Method Details
#inspect ⇒ Object
17 18 19 |
# File 'lib/sidekiq_vigil/notifier/base.rb', line 17 def inspect "#<#{self.class} options=[FILTERED]>" end |
#notify(_event) ⇒ Object
13 14 15 |
# File 'lib/sidekiq_vigil/notifier/base.rb', line 13 def notify(_event) raise NotImplementedError, "#{self.class} must implement #notify" end |