Class: Lusnoc::Configuration
- Inherits:
-
Object
- Object
- Lusnoc::Configuration
- Defined in:
- lib/lusnoc/configuration.rb
Overview
Methods for configuring Lusnoc
Instance Attribute Summary collapse
-
#acl_token ⇒ Object
Returns the value of attribute acl_token.
-
#http_timeout ⇒ Object
Returns the value of attribute http_timeout.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url = 'http://localhost:8500', acl_token = nil) ⇒ Configuration
constructor
Override defaults for configuration.
Constructor Details
#initialize(url = 'http://localhost:8500', acl_token = nil) ⇒ Configuration
Override defaults for configuration
12 13 14 15 16 17 |
# File 'lib/lusnoc/configuration.rb', line 12 def initialize(url = 'http://localhost:8500', acl_token = nil) @url = url @acl_token = acl_token @logger = Logger.new(STDOUT, level: Logger::INFO, progname: 'Lusnoc') @http_timeout = 5 end |
Instance Attribute Details
#acl_token ⇒ Object
Returns the value of attribute acl_token.
7 8 9 |
# File 'lib/lusnoc/configuration.rb', line 7 def acl_token @acl_token end |
#http_timeout ⇒ Object
Returns the value of attribute http_timeout.
7 8 9 |
# File 'lib/lusnoc/configuration.rb', line 7 def http_timeout @http_timeout end |
#logger ⇒ Object
Returns the value of attribute logger.
7 8 9 |
# File 'lib/lusnoc/configuration.rb', line 7 def logger @logger end |
#url ⇒ Object
Returns the value of attribute url.
7 8 9 |
# File 'lib/lusnoc/configuration.rb', line 7 def url @url end |