Sha256: 7e0bf57103d1b135768d5a2e240e4449a2c2117441d5bd609d162e91ec32405b

Contents?: true

Size: 495 Bytes

Versions: 5

Compression:

Stored size: 495 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
    config_accessor :pagination
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nazrin-1.0.1 lib/nazrin/config.rb
nazrin-1.0.0 lib/nazrin/config.rb
nazrin-0.2.0 lib/nazrin/config.rb
nazrin-0.1.1 lib/nazrin/config.rb
nazrin-0.1.0 lib/nazrin/config.rb