class Restforce::Data::Client

def url(resource)

Returns the url to the resource.

resource - A record that responds to to_sparam or a String/Fixnum.

Public: Returns a url to the resource.
def url(resource)
  "#{instance_url}/#{(resource.respond_to?(:to_sparam) ? resource.to_sparam : resource)}"
end