Class: Loopiator::Configuration
- Inherits:
-
Object
- Object
- Loopiator::Configuration
- Defined in:
- lib/loopiator/configuration.rb
Instance Attribute Summary collapse
-
#auth_password ⇒ Object
Returns the value of attribute auth_password.
-
#auth_user ⇒ Object
Returns the value of attribute auth_user.
-
#host ⇒ Object
Returns the value of attribute host.
-
#password ⇒ Object
Returns the value of attribute password.
-
#path ⇒ Object
Returns the value of attribute path.
-
#port ⇒ Object
Returns the value of attribute port.
-
#proxy_host ⇒ Object
Returns the value of attribute proxy_host.
-
#proxy_password ⇒ Object
Returns the value of attribute proxy_password.
-
#proxy_port ⇒ Object
Returns the value of attribute proxy_port.
-
#proxy_user ⇒ Object
Returns the value of attribute proxy_user.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#use_ssl ⇒ Object
Returns the value of attribute use_ssl.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_password ⇒ Object
Returns the value of attribute auth_password.
4 5 6 |
# File 'lib/loopiator/configuration.rb', line 4 def auth_password @auth_password end |
#auth_user ⇒ Object
Returns the value of attribute auth_user.
4 5 6 |
# File 'lib/loopiator/configuration.rb', line 4 def auth_user @auth_user end |
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/loopiator/configuration.rb', line 3 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
6 7 8 |
# File 'lib/loopiator/configuration.rb', line 6 def password @password end |
#path ⇒ Object
Returns the value of attribute path.
3 4 5 |
# File 'lib/loopiator/configuration.rb', line 3 def path @path end |
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/loopiator/configuration.rb', line 3 def port @port end |
#proxy_host ⇒ Object
Returns the value of attribute proxy_host.
7 8 9 |
# File 'lib/loopiator/configuration.rb', line 7 def proxy_host @proxy_host end |
#proxy_password ⇒ Object
Returns the value of attribute proxy_password.
7 8 9 |
# File 'lib/loopiator/configuration.rb', line 7 def proxy_password @proxy_password end |
#proxy_port ⇒ Object
Returns the value of attribute proxy_port.
7 8 9 |
# File 'lib/loopiator/configuration.rb', line 7 def proxy_port @proxy_port end |
#proxy_user ⇒ Object
Returns the value of attribute proxy_user.
7 8 9 |
# File 'lib/loopiator/configuration.rb', line 7 def proxy_user @proxy_user end |
#timeout ⇒ Object
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/loopiator/configuration.rb', line 5 def timeout @timeout end |
#use_ssl ⇒ Object
Returns the value of attribute use_ssl.
5 6 7 |
# File 'lib/loopiator/configuration.rb', line 5 def use_ssl @use_ssl end |
#username ⇒ Object
Returns the value of attribute username.
6 7 8 |
# File 'lib/loopiator/configuration.rb', line 6 def username @username end |