Class: Dynamoid::Undumping::ArrayUndumper

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

Constant Summary collapse

ALLOWED_TYPES =
%i[string integer number date datetime serialized].freeze

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

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

Instance Method Details

#process(array) ⇒ Object



150
151
152
153
154
155
156
# File 'lib/dynamoid/undumping.rb', line 150

def process(array)
  if @options.key?(:of)
    process_typed_collection(array)
  else
    array.is_a?(Array) ? array : Array(array)
  end
end