Class: Loopiator::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/loopiator/configuration.rb', line 9

def initialize
  self.host             =   "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.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_passwordObject

Returns the value of attribute auth_password.



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

def auth_password
  @auth_password
end

#auth_userObject

Returns the value of attribute auth_user.



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

def auth_user
  @auth_user
end

#hostObject

Returns the value of attribute host.



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

def host
  @host
end

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#pathObject

Returns the value of attribute path.



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

def path
  @path
end

#portObject

Returns the value of attribute port.



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

def port
  @port
end

#proxy_hostObject

Returns the value of attribute proxy_host.



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

def proxy_host
  @proxy_host
end

#proxy_passwordObject

Returns the value of attribute proxy_password.



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

def proxy_password
  @proxy_password
end

#proxy_portObject

Returns the value of attribute proxy_port.



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

def proxy_port
  @proxy_port
end

#proxy_userObject

Returns the value of attribute proxy_user.



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

def proxy_user
  @proxy_user
end

#timeoutObject

Returns the value of attribute timeout.



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

def timeout
  @timeout
end

#use_sslObject

Returns the value of attribute use_ssl.



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

def use_ssl
  @use_ssl
end

#usernameObject

Returns the value of attribute username.



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

def username
  @username
end