Class: Google4R::Checkout::Dimension
- Defined in:
- lib/google4r/checkout/shared.rb
Overview
This defines package dimension
Constant Summary collapse
- INCH =
Constants for unit
'IN'
Instance Attribute Summary
Attributes inherited from Unit
Instance Method Summary collapse
-
#initialize(value, unit = INCH) ⇒ Dimension
constructor
A new instance of Dimension.
Methods inherited from Unit
Constructor Details
#initialize(value, unit = INCH) ⇒ Dimension
Returns a new instance of Dimension.
1125 1126 1127 1128 |
# File 'lib/google4r/checkout/shared.rb', line 1125 def initialize(value, unit=INCH) @unit = unit @value = BigDecimal.new(value.to_s) end |