Class: Lotus::Model::Mapping::Coercers::Float 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.
Float coercer
Class Method Summary collapse
-
.load(value) ⇒ Float
private
Transform a value from the database into a Float, unless nil.
Methods inherited from Coercer
Class Method Details
.load(value) ⇒ Float
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 Float, unless nil
132 133 134 |
# File 'lib/lotus/model/mapping/coercers.rb', line 132 def self.load(value) Utils::Kernel.Float(value) unless value.nil? end |