Method: JsonClient::UriBuilder#uri

Defined in:
lib/json_client/uri_builder.rb

#uri(id = nil) ⇒ Object



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/json_client/uri_builder.rb', line 22

def uri(id = nil)
  p = path(id)

  if ssl
    p = "https://#{p}"
  else
    p = "http://#{p}"
  end

  URI(p)
end