Method: ShipEngine::Domain::Labels::CreateFromRate::Response::Dimensions#initialize

Defined in:
lib/shipengine/domain/labels/create_from_rate.rb

#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



152
153
154
155
156
157
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 152

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