Class: ShipEngine::Domain::Labels::CreateFromShipmentDetails::Response::Dimensions
- Inherits:
-
Object
- Object
- ShipEngine::Domain::Labels::CreateFromShipmentDetails::Response::Dimensions
- Defined in:
- lib/shipengine/domain/labels/create_from_shipment_details.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#unit ⇒ Object
readonly
Returns the value of attribute unit.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(unit:, length:, width:, height:) ⇒ Dimensions
constructor
type [“inch” | “centimeter”] unit.
Constructor Details
#initialize(unit:, length:, width:, height:) ⇒ Dimensions
type [“inch” | “centimeter”] unit
152 153 154 155 156 157 |
# File 'lib/shipengine/domain/labels/create_from_shipment_details.rb', line 152 def initialize(unit:, length:, width:, height:) @unit = unit @length = length @width = width @height = height end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
145 146 147 |
# File 'lib/shipengine/domain/labels/create_from_shipment_details.rb', line 145 def height @height end |
#length ⇒ Object (readonly)
Returns the value of attribute length.
145 146 147 |
# File 'lib/shipengine/domain/labels/create_from_shipment_details.rb', line 145 def length @length end |
#unit ⇒ Object (readonly)
Returns the value of attribute unit.
145 146 147 |
# File 'lib/shipengine/domain/labels/create_from_shipment_details.rb', line 145 def unit @unit end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
145 146 147 |
# File 'lib/shipengine/domain/labels/create_from_shipment_details.rb', line 145 def width @width end |