class Dynamoid::TypeCasting::MapTypeCaster

Public Instance Methods

process(value) click to toggle source
# File lib/dynamoid/type_casting.rb, line 211
def process(value)
  return nil if value.nil?

  if value.is_a? Hash
    value
  elsif value.respond_to? :to_hash
    value.to_hash
  elsif value.respond_to? :to_h
    value.to_h
  end
end