Namespace

Module

Methods

Instance Public methods

deserialize(arguments)

Deserializes a set of arguments. Intrinsic types that can safely be deserialized without mutation are returned as-is. Arrays/Hashes are deserialized element by element. All other types are deserialized using GlobalID.

📝 Source code
# File activejob/lib/active_job/arguments.rb, line 41
    def deserialize(arguments)
      arguments.map { |argument| deserialize_argument(argument) }
    rescue
      raise DeserializationError
    end
🔎 See on GitHub

serialize(arguments)

Serializes a set of arguments. Intrinsic types that can safely be serialized without mutation are returned as-is. Arrays/Hashes are serialized element by element. All other types are serialized using GlobalID.

📝 Source code
# File activejob/lib/active_job/arguments.rb, line 33
    def serialize(arguments)
      arguments.map { |argument| serialize_argument(argument) }
    end
🔎 See on GitHub