Module: Hooksmith
- Defined in:
- lib/hooksmith.rb,
lib/hooksmith/logger.rb,
lib/hooksmith/railtie.rb,
lib/hooksmith/version.rb,
lib/hooksmith/dispatcher.rb,
lib/hooksmith/configuration.rb,
lib/hooksmith/event_recorder.rb,
lib/hooksmith/processor/base.rb,
lib/hooksmith/config/provider.rb,
lib/hooksmith/config/event_store.rb
Overview
Provides a DSL for registering webhook processors by provider and event.
Defined Under Namespace
Modules: Config, EventRecorder, Processor Classes: Configuration, Dispatcher, Logger, MultipleProcessorsError, Railtie
Constant Summary collapse
- VERSION =
'0.2.0'
Class Method Summary collapse
-
.configuration ⇒ Configuration
Returns the configuration instance.
-
.configure {|config| ... } ⇒ Object
Yields the configuration to a block.
-
.logger ⇒ Logger
Returns the gem’s logger instance.
Class Method Details
.configuration ⇒ Configuration
Returns the configuration instance.
27 28 29 |
# File 'lib/hooksmith.rb', line 27 def self.configuration @configuration ||= Configuration.new end |
.configure {|config| ... } ⇒ Object
Yields the configuration to a block.
33 34 35 |
# File 'lib/hooksmith.rb', line 33 def self.configure yield(configuration) end |
.logger ⇒ Logger
Returns the gem’s logger instance.
39 40 41 |
# File 'lib/hooksmith.rb', line 39 def self.logger Logger.instance end |