Module: EvilEvents::Core::Events::EventExtensions::Serializable Private

Included in:
AbstractEvent
Defined in:
lib/evil_events/core/events/event_extensions/serializable.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#serialize_to_hashHash Also known as: dump_to_hash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Hash)

Since:

  • 0.1.0



11
12
13
# File 'lib/evil_events/core/events/event_extensions/serializable.rb', line 11

def serialize_to_hash
  EvilEvents::Core::Bootstrap[:event_system].serialize_to_hash(self)
end

#serialize_to_jsonString Also known as: dump_to_json

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (String)

Since:

  • 0.1.0



20
21
22
# File 'lib/evil_events/core/events/event_extensions/serializable.rb', line 20

def serialize_to_json
  EvilEvents::Core::Bootstrap[:event_system].serialize_to_json(self)
end

#serialize_to_msgpackString Also known as: dump_to_msgpack

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (String)

Since:

  • 0.4.0



38
39
40
# File 'lib/evil_events/core/events/event_extensions/serializable.rb', line 38

def serialize_to_msgpack
  EvilEvents::Core::Bootstrap[:event_system].serialize_to_msgpack(self)
end

#serialize_to_xmlString Also known as: dump_to_xml

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (String)

Since:

  • 0.4.0



29
30
31
# File 'lib/evil_events/core/events/event_extensions/serializable.rb', line 29

def serialize_to_xml
  EvilEvents::Core::Bootstrap[:event_system].serialize_to_xml(self)
end