class Consul::Client::Config
Attributes
host[R]
namespace[RW]
port[R]
Public Class Methods
new()
click to toggle source
# File lib/consul/client/config.rb, line 6 def initialize @port = 8500 @host = "consul" @namespace = "/bags" end
Public Instance Methods
host=(newhost)
click to toggle source
# File lib/consul/client/config.rb, line 12 def host=(newhost) @host = newhost Consul::Client.http.load_config @host end
port=(newport)
click to toggle source
# File lib/consul/client/config.rb, line 18 def port=(newport) @port = newport Consul::Client.http.load_config @port end