Class: Vindi::Webhooks::BaseHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/vindi/templates/base_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_payload) ⇒ BaseHandler

Returns a new instance of BaseHandler.



8
9
10
# File 'lib/generators/vindi/templates/base_handler.rb', line 8

def initialize(event_payload)
  @event_payload = event_payload
end

Instance Attribute Details

#event_payloadObject (readonly)

Returns the value of attribute event_payload.



6
7
8
# File 'lib/generators/vindi/templates/base_handler.rb', line 6

def event_payload
  @event_payload
end

Instance Method Details

#callObject

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/generators/vindi/templates/base_handler.rb', line 12

def call
  raise NotImplementedError, "#{self.class} must implement #call"
end