Sha256: e57e592f10e5e3249412c671a35fbd75fece6dc5847a8818e334029d427c7931

Contents?: true

Size: 463 Bytes

Versions: 3

Compression:

Stored size: 463 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 :search_endpoint
    config_accessor :document_endpoint
    config_accessor :region
    config_accessor :access_key_id
    config_accessor :secret_access_key
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nazrin-2.0.0 lib/nazrin/config.rb
nazrin-2.0.0.rc2 lib/nazrin/config.rb
nazrin-2.0.0.rc1 lib/nazrin/config.rb