Class: Diplomat::Configuration
- Inherits:
-
Object
- Object
- Diplomat::Configuration
- Defined in:
- lib/diplomat/configuration.rb
Overview
Methods for configuring Diplomat
Instance Attribute Summary collapse
-
#acl_token ⇒ Object
Returns the value of attribute acl_token.
-
#middleware ⇒ Object
Returns the value of attribute middleware.
-
#options ⇒ Object
Returns the value of attribute options.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url = 'http://localhost:8500', acl_token = nil, options = {}) ⇒ Configuration
constructor
Override defaults for configuration.
Constructor Details
#initialize(url = 'http://localhost:8500', acl_token = nil, options = {}) ⇒ Configuration
Override defaults for configuration
11 12 13 14 15 16 |
# File 'lib/diplomat/configuration.rb', line 11 def initialize(url = 'http://localhost:8500', acl_token = nil, = {}) @middleware = [] @url = url @acl_token = acl_token @options = end |
Instance Attribute Details
#acl_token ⇒ Object
Returns the value of attribute acl_token.
5 6 7 |
# File 'lib/diplomat/configuration.rb', line 5 def acl_token @acl_token end |
#middleware ⇒ Object
Returns the value of attribute middleware.
4 5 6 |
# File 'lib/diplomat/configuration.rb', line 4 def middleware @middleware end |
#options ⇒ Object
Returns the value of attribute options.
5 6 7 |
# File 'lib/diplomat/configuration.rb', line 5 def @options end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/diplomat/configuration.rb', line 5 def url @url end |