lib/loopiator/configuration.rb in loopiator-0.3.5 vs lib/loopiator/configuration.rb in loopiator-0.3.6
- old
+ new
@@ -1,22 +1,32 @@
module Loopiator
class Configuration
- attr_accessor :host, :port, :path
+ attr_accessor :environment
+ attr_accessor :hosts, :port, :path
attr_accessor :auth_user, :auth_password
attr_accessor :use_ssl, :timeout
+ attr_accessor :debug
attr_accessor :username, :password
attr_accessor :proxy_host, :proxy_port, :proxy_user, :proxy_password
def initialize
- self.host = "api.loopia.se"
+ self.environment = :production
+
+ self.hosts = {
+ production: "api.loopia.se",
+ test: "test-api.loopia.se"
+ }
+
self.port = 443
self.path = "/RPCSERV"
self.auth_user = nil
self.auth_password = nil
self.use_ssl = true
self.timeout = 180
+
+ self.debug = false
self.username = nil
self.password = nil
self.proxy_host = nil
\ No newline at end of file