Class: ErpIntegration::Types::Decimal
- Inherits:
-
Object
- Object
- ErpIntegration::Types::Decimal
- Defined in:
- lib/erp_integration/types/decimal.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(decimal_str) ⇒ Decimal
constructor
A new instance of Decimal.
Constructor Details
#initialize(decimal_str) ⇒ Decimal
Returns a new instance of Decimal.
10 11 12 |
# File 'lib/erp_integration/types/decimal.rb', line 10 def initialize(decimal_str) @object = BigDecimal(decimal_str) end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
8 9 10 |
# File 'lib/erp_integration/types/decimal.rb', line 8 def object @object end |