Class: Gcpc::Subscriber::BaseHandler

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

Instance Method Summary collapse

Instance Method Details

#handle(data, attributes, message) ⇒ Object

Parameters:

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

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/gcpc/subscriber/base_handler.rb', line 10

def handle(data, attributes, message)
  raise NotImplementedError.new("You must implement #{self.class}##{__method__}")
end