Method: Codebot::Serializable.deserialize

Defined in:
lib/codebot/serializable.rb

.deserialize(_key = nil, _val) ⇒ Hash

Note:

Child classes should override this method.

Deserializes an object.

Parameters:

  • _key (Object) (defaults to: nil)

    the hash key if the value was serialized into a hash

  • _val (Hash)

    the serialized data

Returns:

  • (Hash)

    the parameters to pass to the initializer



53
54
55
# File 'lib/codebot/serializable.rb', line 53

def self.deserialize(_key = nil, _val)
  {}
end