Sha256: 8167bcb47d0040ab749023d330691800e57244d6b7690ce93f30804a07616ba7

Contents?: true

Size: 340 Bytes

Versions: 10

Compression:

Stored size: 340 Bytes

Contents

# frozen_string_literal: true

module SolidusBolt
  class Configuration
    attr_accessor :bolt_api_key, :bolt_signing_secret, :bolt_publishable_key
  end

  class << self
    def configuration
      @configuration ||= Configuration.new
    end

    alias config configuration

    def configure
      yield configuration
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
solidus_bolt-0.7.2 lib/solidus_bolt/configuration.rb
solidus_bolt-0.7.1 lib/solidus_bolt/configuration.rb
solidus_bolt-0.7.0 lib/solidus_bolt/configuration.rb
solidus_bolt-0.6.0 lib/solidus_bolt/configuration.rb
solidus_bolt-0.5.0 lib/solidus_bolt/configuration.rb
solidus_bolt-0.4.0 lib/solidus_bolt/configuration.rb
solidus_bolt-0.3.0 lib/solidus_bolt/configuration.rb
solidus_bolt-0.2.0 lib/solidus_bolt/configuration.rb
solidus_bolt-0.1.0 lib/solidus_bolt/configuration.rb
solidus_bolt-0.0.1 lib/solidus_bolt/configuration.rb