Class: Dynamoid::TypeCasting::ArrayTypeCaster

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



161
162
163
164
165
166
167
168
169
# File 'lib/dynamoid/type_casting.rb', line 161

def process(value)
  array = type_cast_to_array(value)

  if array.present? && @options[:of].present?
    process_typed_array(array)
  else
    array
  end
end