Class: Contentful::StringCoercion

Inherits:
BaseCoercion show all
Defined in:
lib/contentful/coercions.rb

Overview

Coercion for String Types

Direct Known Subclasses

SymbolCoercion, TextCoercion

Instance Attribute Summary

Attributes inherited from BaseCoercion

#options, #value

Instance Method Summary collapse

Methods inherited from BaseCoercion

#initialize

Constructor Details

This class inherits a constructor from Contentful::BaseCoercion

Instance Method Details

#coerceObject

Coerces value to String



22
23
24
# File 'lib/contentful/coercions.rb', line 22

def coerce(*)
  value.to_s
end