Method: AdvancedBilling::ProformaBadRequestErrorResponseException#unbox

Defined in:
lib/advanced_billing/exceptions/proforma_bad_request_error_response_exception.rb

#unbox(hash) ⇒ Object

Populates this object by extracting properties from a hash. response body.

Parameters:

  • The (Hash)

    deserialized response sent by the server in the



28
29
30
# File 'lib/advanced_billing/exceptions/proforma_bad_request_error_response_exception.rb', line 28

def unbox(hash)
  @errors = ProformaError.from_hash(hash['errors']) if hash['errors']
end