Class: Lotus::Model::Mapping::Coercers::BigDecimal Private
- Defined in:
- lib/lotus/model/mapping/coercers.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
BigDecimal coercer
Class Method Summary collapse
-
.load(value) ⇒ BigDecimal
private
Transform a value from the database into a BigDecimal, unless nil.
Methods inherited from Coercer
Class Method Details
.load(value) ⇒ BigDecimal
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Transform a value from the database into a BigDecimal, unless nil
207 208 209 |
# File 'lib/lotus/model/mapping/coercers.rb', line 207 def self.load(value) Utils::Kernel.BigDecimal(value) unless value.nil? end |