Class: Diplomat::Configuration
- Inherits:
-
Object
- Object
- Diplomat::Configuration
- Defined in:
- lib/diplomat/configuration.rb
Instance Attribute Summary collapse
-
#middleware ⇒ Object
Returns the value of attribute middleware.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 |
# File 'lib/diplomat/configuration.rb', line 6 def initialize @middleware = [] @url = "http://localhost:8500" end |
Instance Attribute Details
#middleware ⇒ Object
Returns the value of attribute middleware.
3 4 5 |
# File 'lib/diplomat/configuration.rb', line 3 def middleware @middleware end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/diplomat/configuration.rb', line 4 def url @url end |