Class: ErpIntegration::Types::Decimal

Inherits:
Object
  • Object
show all
Defined in:
lib/erp_integration/types/decimal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#objectObject (readonly)

Returns the value of attribute object.



8
9
10
# File 'lib/erp_integration/types/decimal.rb', line 8

def object
  @object
end