Module: SolidusWebhooks

Defined in:
lib/solidus_webhooks/engine.rb,
lib/solidus_webhooks/errors.rb,
lib/solidus_webhooks/version.rb,
lib/solidus_webhooks/configuration.rb,
lib/generators/solidus_webhooks/install/install_generator.rb

Defined Under Namespace

Modules: Generators Classes: Configuration, Engine

Constant Summary collapse

WebhookNotFound =
Class.new(StandardError)
InvalidHandler =
Class.new(StandardError)
VERSION =
'0.4.2'

Class Method Summary collapse

Class Method Details

.configurationObject Also known as: config



26
27
28
# File 'lib/solidus_webhooks/configuration.rb', line 26

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



36
37
38
# File 'lib/solidus_webhooks/configuration.rb', line 36

def configure
  yield configuration
end

.reset_config!Object



32
33
34
# File 'lib/solidus_webhooks/configuration.rb', line 32

def reset_config!
  @configuration = nil
end