Sha256: 7740da18d94bf2fcafadf2492a8bfc8315a6e8baeefd355c809b79f112a7f2b0

Contents?: true

Size: 517 Bytes

Versions: 7

Compression:

Stored size: 517 Bytes

Contents

require 'active_support/configurable'

module Nazrin
  def self.config
    @config ||= Nazrin::Configuration.new
  end

  def self.configure
    yield config if block_given?
  end

  class Configuration
    include ActiveSupport::Configurable
    config_accessor :debug_mode
    config_accessor :mode
    config_accessor :search_endpoint
    config_accessor :document_endpoint
    config_accessor :region
    config_accessor :access_key_id
    config_accessor :secret_access_key
    config_accessor :logger
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nazrin-2.7.0 lib/nazrin/config.rb
nazrin-2.6.3 lib/nazrin/config.rb
nazrin-2.6.2 lib/nazrin/config.rb
nazrin-2.6.1 lib/nazrin/config.rb
nazrin-2.6.0 lib/nazrin/config.rb
nazrin-2.5.0 lib/nazrin/config.rb
nazrin-2.4.0 lib/nazrin/config.rb