Module: Vantage::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/vantage/config.rb

Instance Method Summary collapse

Instance Method Details

#endpoint(name) ⇒ Object



9
10
11
12
13
# File 'lib/vantage/config.rb', line 9

def endpoint(name)
  uri = endpoint_base
  uri.host = "#{name}.#{uri.host}"
  uri
end

#endpoint_baseObject



5
6
7
# File 'lib/vantage/config.rb', line 5

def endpoint_base
  URI("http://anon:[email protected]/checks")
end