Class: Consul::Client::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/consul/client/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/consul/client/config.rb', line 3

def host
  @host
end

#namespaceObject

Returns the value of attribute namespace.



4
5
6
# File 'lib/consul/client/config.rb', line 4

def namespace
  @namespace
end

#portObject

Returns the value of attribute port.



3
4
5
# File 'lib/consul/client/config.rb', line 3

def port
  @port
end