Class: Dynamoid::Dumping::SetDumper

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

Overview

set -> set

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::Dumping::Base

Instance Method Details

#process(set) ⇒ Object



110
111
112
113
114
115
116
117
118
# File 'lib/dynamoid/dumping.rb', line 110

def process(set)
  return nil if set.is_a?(Set) && set.empty?

  if @options.key?(:of)
    process_typed_collection(set)
  else
    set
  end
end