Sha256: 4e28560c459f69a8bb2a80c6a17d2e15c20dc204715b46ad42bb935819612ccd
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
module Squall # Holds the configuration for Squall class Config # Public: A Hash that stores configuration info. attr_accessor :config def initialize @config = {} end # Public: Hash accessor, delegates to `@config`. # # Returns the value from `@config`. def [](v) @config[v] end # Public: Sets the URL of your OnApp instance. # # value - The String URL # # Returns value. def base_uri(value) @config[:base_uri] = value end # Public: Sets the API username. # # value - The String username # # Returns value. def username(value) @config[:username] = value end # Public: Sets the API Password> # # value - The String password # # Returns value. def password(value) @config[:password] = value end # Public: Set to true to enable HTTP logging. # # value - A Boolean # # Returns value. def debug(value) @config[:debug] = value end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
squall-1.4.0 | lib/squall/support/config.rb |
squall-1.3.1 | lib/squall/support/config.rb |