Class: Gcpc::Subscriber::BaseInterceptor

Inherits:
Object
  • Object
show all
Defined in:
lib/gcpc/subscriber/base_interceptor.rb

Instance Method Summary collapse

Instance Method Details

#handle(data, attributes, message, &block) {|data, attributes, message| ... } ⇒ Object

Parameters:

  • data (String)
  • attributes (Hash)
  • message (Google::Cloud::Pubsub::ReceivedMessage)
  • block (Proc)

Yields:

  • (data, attributes, message)


11
12
13
# File 'lib/gcpc/subscriber/base_interceptor.rb', line 11

def handle(data, attributes, message, &block)
  yield data, attributes, message
end