Class: Contentful::FloatCoercion
- Inherits:
-
BaseCoercion
- Object
- BaseCoercion
- Contentful::FloatCoercion
- Defined in:
- lib/contentful/coercions.rb
Overview
Coercion for Float Types
Instance Attribute Summary
Attributes inherited from BaseCoercion
Instance Method Summary collapse
-
#coerce ⇒ Object
Coerces value to Float.
Methods inherited from BaseCoercion
Constructor Details
This class inherits a constructor from Contentful::BaseCoercion
Instance Method Details
#coerce ⇒ Object
Coerces value to Float
43 44 45 |
# File 'lib/contentful/coercions.rb', line 43 def coerce(*) value.to_f end |