Class: KiriminAja::Types::PricingExpressPayload
- Inherits:
-
Object
- Object
- KiriminAja::Types::PricingExpressPayload
- Defined in:
- lib/kiriminaja/types/address.rb
Instance Attribute Summary collapse
-
#courier ⇒ Object
Returns the value of attribute courier.
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#insurance ⇒ Object
Returns the value of attribute insurance.
-
#item_value ⇒ Object
Returns the value of attribute item_value.
-
#origin ⇒ Object
Returns the value of attribute origin.
-
#weight ⇒ Object
Returns the value of attribute weight.
Instance Method Summary collapse
-
#initialize(origin:, destination:, weight:, item_value:, insurance:, courier:) ⇒ PricingExpressPayload
constructor
A new instance of PricingExpressPayload.
- #to_h ⇒ Object
Constructor Details
#initialize(origin:, destination:, weight:, item_value:, insurance:, courier:) ⇒ PricingExpressPayload
Returns a new instance of PricingExpressPayload.
8 9 10 11 12 13 14 15 |
# File 'lib/kiriminaja/types/address.rb', line 8 def initialize(origin:, destination:, weight:, item_value:, insurance:, courier:) @origin = origin @destination = destination @weight = weight @item_value = item_value @insurance = insurance @courier = courier end |
Instance Attribute Details
#courier ⇒ Object
Returns the value of attribute courier.
6 7 8 |
# File 'lib/kiriminaja/types/address.rb', line 6 def courier @courier end |
#destination ⇒ Object
Returns the value of attribute destination.
6 7 8 |
# File 'lib/kiriminaja/types/address.rb', line 6 def destination @destination end |
#insurance ⇒ Object
Returns the value of attribute insurance.
6 7 8 |
# File 'lib/kiriminaja/types/address.rb', line 6 def insurance @insurance end |
#item_value ⇒ Object
Returns the value of attribute item_value.
6 7 8 |
# File 'lib/kiriminaja/types/address.rb', line 6 def item_value @item_value end |
#origin ⇒ Object
Returns the value of attribute origin.
6 7 8 |
# File 'lib/kiriminaja/types/address.rb', line 6 def origin @origin end |
#weight ⇒ Object
Returns the value of attribute weight.
6 7 8 |
# File 'lib/kiriminaja/types/address.rb', line 6 def weight @weight end |
Instance Method Details
#to_h ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/kiriminaja/types/address.rb', line 17 def to_h { origin: @origin, destination: @destination, weight: @weight, item_value: @item_value, insurance: @insurance, courier: @courier, } end |