Class: Contentful::IntegerCoercion
- Inherits:
-
BaseCoercion
- Object
- BaseCoercion
- Contentful::IntegerCoercion
- Defined in:
- lib/contentful/coercions.rb
Overview
Coercion for Integer Types
Instance Attribute Summary
Attributes inherited from BaseCoercion
Instance Method Summary collapse
-
#coerce ⇒ Object
Coerces value to Integer.
Methods inherited from BaseCoercion
Constructor Details
This class inherits a constructor from Contentful::BaseCoercion
Instance Method Details
#coerce ⇒ Object
Coerces value to Integer
35 36 37 |
# File 'lib/contentful/coercions.rb', line 35 def coerce value.to_i end |