Sha256: 17c2407dcf4b6646a97c76dc3c166c0085bf2578f91829a71117674e63f6ee1b

Contents?: true

Size: 331 Bytes

Versions: 7

Compression:

Stored size: 331 Bytes

Contents

# frozen_string_literal: true

require 'singleton'

module Awis
  class Config
    include Singleton
    attr_accessor :access_key_id, :secret_access_key, :proxy, :debug, :protocol,
                  :timeout, :open_timeout, :logger
  end

  def self.config
    yield Config.instance if block_given?

    Config.instance
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
awis-sdk-ruby-2.1.0 lib/awis/config.rb
awis-sdk-ruby-2.0.0 lib/awis/config.rb
awis-sdk-ruby-1.1.2 lib/awis/config.rb
awis-sdk-ruby_-1.1.1.1 lib/awis/config.rb
awis-sdk-ruby_-1.1.1p1 lib/awis/config.rb
awis-sdk-ruby-1.1.1 lib/awis/config.rb
awis-sdk-ruby-1.1.0 lib/awis/config.rb