Sha256: 13236b464c7355be8c2f6e75face8244e66fa26236dd1e71b28c6285721eb45d

Contents?: true

Size: 250 Bytes

Versions: 8

Compression:

Stored size: 250 Bytes

Contents

require "singleton"

module Awis
  class Config
    include Singleton
    attr_accessor :access_key_id, :secret_access_key, :proxy, :debug
  end

  def self.config
    if block_given?
      yield Config.instance
    end
    Config.instance
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
awis-sdk-ruby-0.0.9 lib/awis/config.rb
awis-sdk-ruby-0.0.8 lib/awis/config.rb
awis-sdk-ruby-0.0.7 lib/awis/config.rb
awis-sdk-ruby-0.0.6 lib/awis/config.rb
awis-sdk-ruby-0.0.5 lib/awis/config.rb
awis-sdk-ruby-0.0.4 lib/awis/config.rb
awis-sdk-ruby-0.0.3 lib/awis/config.rb
awis-sdk-ruby-0.0.1 lib/awis/config.rb