Class: MessageBus::Codec::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/message_bus/codec/base.rb

Direct Known Subclasses

Json, Oj

Instance Method Summary collapse

Instance Method Details

#decode(payload) ⇒ Object

Raises:

  • (ConcreteClassMustImplementError)


10
11
12
# File 'lib/message_bus/codec/base.rb', line 10

def decode(payload)
  raise ConcreteClassMustImplementError
end

#encode(hash) ⇒ Object

Raises:

  • (ConcreteClassMustImplementError)


6
7
8
# File 'lib/message_bus/codec/base.rb', line 6

def encode(hash)
  raise ConcreteClassMustImplementError
end