Class: Dynamoid::TypeCasting::StringTypeCaster
- Defined in:
- lib/dynamoid/type_casting.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Dynamoid::TypeCasting::Base
Instance Method Details
#process(value) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/dynamoid/type_casting.rb', line 57 def process(value) if value == true 't' elsif value == false 'f' elsif value.is_a? String value.dup else value.to_s end end |