def update
      return false if new_record?
      run_callbacks :save do
        run_callbacks :update do
          httparty = self.class.put(self[:@url], request_options.merge(:body => to_json))
          handle_save_response(httparty)
        end
      end
    end
def update
      return false if new_record?
      run_callbacks :save do
        run_callbacks :update do
          httparty = self.class.put(self[:@url], request_options.merge(:body => to_json))
          handle_save_response(httparty)
        end
      end
    end
Update an existing model on the server