Module: ActiveJob::Arguments
Constant Summary collapse
- TYPE_WHITELIST =
[ NilClass, Fixnum, Float, String, TrueClass, FalseClass, Bignum ]
Instance Method Summary collapse
Instance Method Details
#deserialize(arguments) ⇒ Object
31 32 33 34 35 |
# File 'lib/active_job/arguments.rb', line 31 def deserialize(arguments) arguments.map { |argument| deserialize_argument(argument) } rescue => e raise DeserializationError.new(e) end |
#serialize(arguments) ⇒ Object
27 28 29 |
# File 'lib/active_job/arguments.rb', line 27 def serialize(arguments) arguments.map { |argument| serialize_argument(argument) } end |