Class: Consul::Client::Config
- Inherits:
-
Object
- Object
- Consul::Client::Config
- Defined in:
- lib/consul/client/config.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
6 7 8 9 10 |
# File 'lib/consul/client/config.rb', line 6 def initialize @port = 8500 @host = "consul" @namespace = "/bags" end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/consul/client/config.rb', line 3 def host @host end |
#namespace ⇒ Object
Returns the value of attribute namespace.
4 5 6 |
# File 'lib/consul/client/config.rb', line 4 def namespace @namespace end |
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/consul/client/config.rb', line 3 def port @port end |