Sha256: 691453f29aeeaeadacb558d4d65854315f47af164f7cb52a031bd587525002b1

Contents?: true

Size: 450 Bytes

Versions: 4

Compression:

Stored size: 450 Bytes

Contents

module Squall
  # Holds the configuration for Squall
  class Config
    attr_accessor :config

    def initialize
      @config = {}
    end

    def [](v)
      @config[v]
    end

    def base_uri(value)
      @config[:base_uri]  = value
    end

    def username(value)
      @config[:username] = value
    end

    def password(value)
      @config[:password] = value
    end

    def debug(value)
      @config[:debug] = value
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
squall-1.3.0 lib/squall/support/config.rb
squall-1.2.1beta1 lib/squall/support/config.rb
squall-1.2.0beta1 lib/squall/support/config.rb
squall-1.1.0 lib/squall/support/config.rb