Class: EventRouter::Serializers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/event_router/serializers/base.rb

Direct Known Subclasses

Json, Oj

Class Method Summary collapse

Class Method Details

.deserialize(_string) ⇒ Object

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/event_router/serializers/base.rb', line 11

def deserialize(_string)
  raise NotImplementedError, 'Sub-classes must implement serialize method.'
end

.serialize(_object) ⇒ Object

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/event_router/serializers/base.rb', line 7

def serialize(_object)
  raise NotImplementedError, 'Sub-classes must implement serialize method.'
end