Module: Vantage::Config
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_base ⇒ Object
5 6 7 |
# File 'lib/vantage/config.rb', line 5 def endpoint_base URI("http://anon:[email protected]/checks") end |