class Deserializer::Attribute::ValueAttribute
Public Instance Methods
value( params )
click to toggle source
# File lib/deserializer/attribute/value_attribute.rb, line 5 def value( params ) value = params[key] if opts[:ignore_empty] && value.blank? return :ignore end if opts[:convert_with] method = opts[:convert_with] if object.respond_to? method return object.send method, value end end # other options go here value end