Class: EvilEvents::Core::Events::Serializers::Base::AbstractEngine Private

Inherits:
Object
  • Object
show all
Defined in:
lib/evil_events/core/events/serializers/base/abstract_engine.rb

Overview

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

Since:

  • 0.4.0

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ AbstractEngine

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 a new instance of AbstractEngine.

Parameters:

Since:

  • 0.4.0



11
# File 'lib/evil_events/core/events/serializers/base/abstract_engine.rb', line 11

def initialize(config); end

Instance Method Details

#dump(serialization_state) ⇒ Object

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.

Parameters:

Returns:

  • (Object)

Since:

  • 0.4.0



18
# File 'lib/evil_events/core/events/serializers/base/abstract_engine.rb', line 18

def dump(serialization_state); end

#load(data) ⇒ EventSerializationState

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.

Parameters:

  • data (Object)

Returns:

Since:

  • 0.4.0



25
# File 'lib/evil_events/core/events/serializers/base/abstract_engine.rb', line 25

def load(data); end

#restore_serialization_state(id:, type:, payload:, metadata:) ⇒ EventSerializationState (private)

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.

Parameters:

  • id (Hash)

    a customizable set of options

  • type (Hash)

    a customizable set of options

  • payload (Hash)

    a customizable set of options

  • metadata (Hash)

    a customizable set of options

Options Hash (id:):

  • (String, Integer, Object)

Options Hash (type:):

  • (String)

Options Hash (payload:):

  • (::Hash)

Options Hash (metadata:):

  • (::Hash)

Returns:

Since:

  • 0.4.0



38
39
40
41
42
43
44
45
# File 'lib/evil_events/core/events/serializers/base/abstract_engine.rb', line 38

def restore_serialization_state(id:, type:, payload:, metadata:)
  EventSerializationState.build_from_options(
    id:       id,
    type:     type,
    payload:  payload,
    metadata: 
  )
end