lib/Operation.js
function() {
    for (var statusCode in this.responses) {
      var OperationResponse = _o('./OperationResponse')
      if (!(this.responses[statusCode] instanceof OperationResponse)) {
        if (_.isPlainObject(this.responses[statusCode])) {
          this.responses[statusCode] = o(this.responses[statusCode], OperationResponse)
        } else {
          throw new Error(
            'Malformed response spec. ' + JSON.stringify(this.responses[statusCode]))
        }
      }
    }
  }
function() {
    for (var statusCode in this.responses) {
      var OperationResponse = _o('./OperationResponse')
      if (!(this.responses[statusCode] instanceof OperationResponse)) {
        if (_.isPlainObject(this.responses[statusCode])) {
          this.responses[statusCode] = o(this.responses[statusCode], OperationResponse)
        } else {
          throw new Error(
            'Malformed response spec. ' + JSON.stringify(this.responses[statusCode]))
        }
      }
    }
  }
function ( ) { for ( var statusCode in this . responses ) { var OperationResponse = _o ( './OperationResponse' ) if ( ! ( this . responses [ statusCode ] instanceof OperationResponse ) ) { if ( _ . isPlainObject ( this . responses [ statusCode ] ) ) { this . responses [ statusCode ] = o ( this . responses [ statusCode ] , OperationResponse ) } else { throw new Error ( 'Malformed response spec. ' + JSON . stringify ( this . responses [ statusCode ] ) ) } } } }
***************************************************************************
@method _initializeResponses
@description Initializes all responses. If response is not an instance of
{@link carbond.OperationResponse}, it will be instantiated as
such.
@returns {undefined}
***************************************************************************