Class: Ears::Middleware Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/ears/middleware.rb

Overview

This class is abstract.

Subclass and override #call (and maybe +#initialize+) to implement.

The abstract base class for middlewares.

Instance Method Summary collapse

Instance Method Details

#call(delivery_info, metadata, payload, app) ⇒ Object

Invokes the middleware.

Parameters:

  • delivery_info (Bunny::DeliveryInfo)

    The delivery info of the received message.

  • metadata (Bunny::MessageProperties)

    The metadata of the received message.

  • payload (String)

    The payload of the received message.

  • app

    The next middleware to call or the actual consumer instance.

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/ears/middleware.rb', line 11

def call(delivery_info, , payload, app)
  raise NotImplementedError
end