Class: Loopiator::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/loopiator/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ Configuration

Returns a new instance of Configuration.



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/loopiator/configuration.rb', line 11

def initialize
  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
  self.proxy_port       =   nil
  self.proxy_user       =   nil
  self.proxy_password   =   nil
end

Instance Attribute Details

#auth_password ⇒ Object

Returns the value of attribute auth_password.



5
6
7
# File 'lib/loopiator/configuration.rb', line 5

def auth_password
  @auth_password
end

#auth_user ⇒ Object

Returns the value of attribute auth_user.



5
6
7
# File 'lib/loopiator/configuration.rb', line 5

def auth_user
  @auth_user
end

#debug ⇒ Object

Returns the value of attribute debug.



7
8
9
# File 'lib/loopiator/configuration.rb', line 7

def debug
  @debug
end

#environment ⇒ Object

Returns the value of attribute environment.



3
4
5
# File 'lib/loopiator/configuration.rb', line 3

def environment
  @environment
end

#hosts ⇒ Object

Returns the value of attribute hosts.



4
5
6
# File 'lib/loopiator/configuration.rb', line 4

def hosts
  @hosts
end

#password ⇒ Object

Returns the value of attribute password.



8
9
10
# File 'lib/loopiator/configuration.rb', line 8

def password
  @password
end

#path ⇒ Object

Returns the value of attribute path.



4
5
6
# File 'lib/loopiator/configuration.rb', line 4

def path
  @path
end

#port ⇒ Object

Returns the value of attribute port.



4
5
6
# File 'lib/loopiator/configuration.rb', line 4

def port
  @port
end

#proxy_host ⇒ Object

Returns the value of attribute proxy_host.



9
10
11
# File 'lib/loopiator/configuration.rb', line 9

def proxy_host
  @proxy_host
end

#proxy_password ⇒ Object

Returns the value of attribute proxy_password.



9
10
11
# File 'lib/loopiator/configuration.rb', line 9

def proxy_password
  @proxy_password
end

#proxy_port ⇒ Object

Returns the value of attribute proxy_port.



9
10
11
# File 'lib/loopiator/configuration.rb', line 9

def proxy_port
  @proxy_port
end

#proxy_user ⇒ Object

Returns the value of attribute proxy_user.



9
10
11
# File 'lib/loopiator/configuration.rb', line 9

def proxy_user
  @proxy_user
end

#timeout ⇒ Object

Returns the value of attribute timeout.



6
7
8
# File 'lib/loopiator/configuration.rb', line 6

def timeout
  @timeout
end

#use_ssl ⇒ Object

Returns the value of attribute use_ssl.



6
7
8
# File 'lib/loopiator/configuration.rb', line 6

def use_ssl
  @use_ssl
end

#username ⇒ Object

Returns the value of attribute username.



8
9
10
# File 'lib/loopiator/configuration.rb', line 8

def username
  @username
end