Class: ShipEngine::Domain::Rates::GetWithShipmentDetails::Response::Dimensions

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(unit:, length:, width:, height:) ⇒ Dimensions

type [“inch” | “centimeter”] unit

Parameters:

  • length (Double)
    • e.g. 1.0

  • width (Double)
    • e.g. 1.0

  • height (Double)
    • e.g. 1.0



162
163
164
165
166
167
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 162

def initialize(unit:, length:, width:, height:)
  @unit = unit
  @length = length
  @width = width
  @height = height
end

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



155
156
157
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 155

def height
  @height
end

#lengthObject (readonly)

Returns the value of attribute length.



155
156
157
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 155

def length
  @length
end

#unitObject (readonly)

Returns the value of attribute unit.



155
156
157
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 155

def unit
  @unit
end

#widthObject (readonly)

Returns the value of attribute width.



155
156
157
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 155

def width
  @width
end