Class: KiriminAja::Types::PricingExpressPayload

Inherits:
Object
  • Object
show all
Defined in:
lib/kiriminaja/types/address.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#courierObject

Returns the value of attribute courier.



6
7
8
# File 'lib/kiriminaja/types/address.rb', line 6

def courier
  @courier
end

#destinationObject

Returns the value of attribute destination.



6
7
8
# File 'lib/kiriminaja/types/address.rb', line 6

def destination
  @destination
end

#insuranceObject

Returns the value of attribute insurance.



6
7
8
# File 'lib/kiriminaja/types/address.rb', line 6

def insurance
  @insurance
end

#item_valueObject

Returns the value of attribute item_value.



6
7
8
# File 'lib/kiriminaja/types/address.rb', line 6

def item_value
  @item_value
end

#originObject

Returns the value of attribute origin.



6
7
8
# File 'lib/kiriminaja/types/address.rb', line 6

def origin
  @origin
end

#weightObject

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_hObject



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