Method: Frenchy::Resource::ClassMethods#find_with_path

Defined in:
lib/frenchy/resource.rb

#find_with_path(method, path, params = {}) ⇒ Object

Call with arbitrary method and path



36
37
38
39
40
41
# File 'lib/frenchy/resource.rb', line 36

def find_with_path(method, path, params={})
  params.stringify_keys!
  extras = {"model" => self.name, "endpoint" => "path"}
  response = Frenchy::Request.new(@service, method.to_s, path.to_s, params, extras).value
  digest_response(response, endpoint)
end