Module: Signnow::Operations::Find::ClassMethods

Defined in:
lib/signnow/operations/find.rb

Instance Method Summary collapse

Instance Method Details

#find(attibutes) ⇒ Signnow::Base

Finds a given object

Parameters:

  • id (Integer)

    The id of the object that should be found

Returns:



9
10
11
12
13
# File 'lib/signnow/operations/find.rb', line 9

def find(attibutes)
  id = attibutes.delete(:id)
  response = Signnow.request(:get, nil, api_find_url(id), {}, options_for_find(attributes))
  self.new(response["data"])
end