Class: Shipping::LtlShippingInsurance::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/shipping/ltl_shipping_insurance.rb

Overview

Service object: result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status: nil, status_message: nil) ⇒ Result

Returns a new instance of Result.



6
# File 'app/services/shipping/ltl_shipping_insurance.rb', line 6

def initialize(status: nil, status_message: nil) = super

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



5
6
7
# File 'app/services/shipping/ltl_shipping_insurance.rb', line 5

def status
  @status
end

#status_messageObject (readonly)

Returns the value of attribute status_message

Returns:

  • (Object)

    the current value of status_message



5
6
7
# File 'app/services/shipping/ltl_shipping_insurance.rb', line 5

def status_message
  @status_message
end