def update_changed_resource(resource, response)
      resource.last_modified_hash = response.response.hash
      resource.last_updated = Time.now
      resource.body = response.response
      resource.save
    end
def update_changed_resource(resource, response)
      resource.last_modified_hash = response.response.hash
      resource.last_updated = Time.now
      resource.body = response.response
      resource.save
    end
Updates the resource's fields when the resource has changed.  The
 last_modified_hash is set to the hash value of the response body, the
 response body itself is saved so that it can be sent to consumers during
 notifications, and the resource's last_updated time is set to the current
 time.