Class: Dynamoid::TypeCasting::SetTypeCaster

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



116
117
118
119
120
121
122
123
124
# File 'lib/dynamoid/type_casting.rb', line 116

def process(value)
  set = type_cast_to_set(value)

  if set.present? && @options[:of].present?
    process_typed_set(set)
  else
    set
  end
end