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



166
167
168
169
170
171
172
173
174
# File 'lib/dynamoid/type_casting.rb', line 166

def process(value)
  array = type_cast_to_array(value)

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