Class: Dynamoid::Undumping::SetUndumper

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(set) ⇒ Object



105
106
107
108
109
110
111
# File 'lib/dynamoid/undumping.rb', line 105

def process(set)
  if @options.key?(:of)
    process_typed_collection(set)
  else
    set.is_a?(Set) ? set : Set.new(set)
  end
end