Class: ShipEngine::Domain::Carriers::ListCarriers::Carrier::Package::Dimensions
- Inherits:
-
Object
- Object
- ShipEngine::Domain::Carriers::ListCarriers::Carrier::Package::Dimensions
- Defined in:
- lib/shipengine/domain/carriers/list_carriers.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
114 115 116 117 118 119 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 114 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.
107 108 109 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 107 def height @height end |
#length ⇒ Object (readonly)
Returns the value of attribute length.
107 108 109 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 107 def length @length end |
#unit ⇒ Object (readonly)
Returns the value of attribute unit.
107 108 109 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 107 def unit @unit end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
107 108 109 |
# File 'lib/shipengine/domain/carriers/list_carriers.rb', line 107 def width @width end |