module ProsperWorks::ApiOperations::Update

Public Instance Methods

update(entity ,attributes = {}) click to toggle source
# File lib/prosperworks/api_operations/update.rb, line 9
def update(entity ,attributes = {})
  entity.set_attributes(attributes)
  id = entity.id

  uri = get_uri(api_name, id)

  response = send_request("put", uri, entity)
  handle_response(self.new, response)
end