Class: Dynamoid::Undumping::CustomTypeUndumper
- Defined in:
- lib/dynamoid/undumping.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Dynamoid::Undumping::Base
Instance Method Details
#process(value) ⇒ Object
303 304 305 306 307 308 309 310 311 |
# File 'lib/dynamoid/undumping.rb', line 303 def process(value) field_class = @options[:type] unless field_class.respond_to?(:dynamoid_load) raise ArgumentError, "#{field_class} does not support serialization for Dynamoid." end field_class.dynamoid_load(value) end |