Class: ShipEngine::Domain::Rates::GetWithShipmentDetails::Response::RateResponse::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/shipengine/domain/rates/get_with_shipment_details.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_source:, error_type:, error_code:, message:) ⇒ Error

type [“carrier” | “order_source” | “shipengine”] error_source type [“account_status” | “business_rules” | “validation” | “security” | “system” | “integrations”] error_type

Parameters:

  • error_code (String)
  • message (String)


335
336
337
338
339
340
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 335

def initialize(error_source:, error_type:, error_code:, message:)
  @error_source = error_source
  @error_type = error_type
  @error_code = error_code
  @message = message
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



329
330
331
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 329

def error_code
  @error_code
end

#error_sourceObject (readonly)

Returns the value of attribute error_source.



329
330
331
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 329

def error_source
  @error_source
end

#error_typeObject (readonly)

Returns the value of attribute error_type.



329
330
331
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 329

def error_type
  @error_type
end

#messageObject (readonly)

Returns the value of attribute message.



329
330
331
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 329

def message
  @message
end