src/entity/Entity.js
/**
   * Update itself by calling the update method of the owning resource and
   * passing the JSON representation of itself or the given body object.
   *
   * @param {Object} body - optional body, use self as default
   * @param {Function} callback - error-first callback
   * @returns {Promise.<Object>}
   */
Update itself by calling the update method of the owning resource and
passing the JSON representation of itself or the given body object.

@param {Object} body - optional body, use self as default
@param {Function} callback - error-first callback
@returns {Promise.}
Update itself by calling the update method of the owning resource and passing the JSON representation of itself or the given body object . @param { Object } body - optional body use self as default @param { Function } callback - error - first callback @returns { Promise . }
update (body = this.json(), callback) {
    return this[symbols.resource].update(body, callback).then((updated) => {
      Object.assign(this, updated)
      return updated
    })
  }
update ( body = this . json ( ) , callback ) { return this [ symbols . resource ] . update ( body , callback ) . then ( ( updated ) => { Object . assign ( this , updated ) return updated } ) }
Update itself by calling the update method of the owning resource and
 passing the JSON representation of itself or the given body object.
Update itself by calling the update method of the owning resource and passing the JSON representation of itself or the given body object .
// Update self and keep chaining with API response.