_canBeDestroyed (response) {
    const wasSuccessful = response.status === Response.NO_CONTENT

    if (!this._isTrashable()) {
      return wasSuccessful
    }

    return wasSuccessful && this.isTrashed()
  }
/**
   * Helper to see if the wasDestroyed flag should be set
   * @param response
   * @returns {boolean}
   * @private
   */
Helper to see if the wasDestroyed flag should be set
@param response
@returns {boolean}
@private
Helper to see if the wasDestroyed flag should be set @param response @returns { boolean } @private
_canBeDestroyed (response) {
    const wasSuccessful = response.status === Response.NO_CONTENT
    if (!this._isTrashable()) {
      return wasSuccessful
    }
    return wasSuccessful && this.isTrashed()
  }
_canBeDestroyed ( response ) { const wasSuccessful = response . status === Response . NO_CONTENT if ( ! this . _isTrashable ( ) ) { return wasSuccessful } return wasSuccessful && this . isTrashed ( ) }
Helper to see if the wasDestroyed flag should be set
 @param response
 @returns {boolean}
 @private
Helper to see if the wasDestroyed flag should be set @param response @returns { boolean } @private