Class: Dynamoid::TypeCasting::BinaryTypeCaster

Inherits:
Base
  • Object
show all
Defined in:
lib/dynamoid/type_casting.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Dynamoid::TypeCasting::Base

Instance Method Details

#process(value) ⇒ Object



289
290
291
292
293
294
295
# File 'lib/dynamoid/type_casting.rb', line 289

def process(value)
  if value.is_a? String
    value.dup
  else
    value.to_s
  end
end