Class: Vindi::Webhooks::BaseHandler
- Inherits:
-
Object
- Object
- Vindi::Webhooks::BaseHandler
- Defined in:
- lib/generators/vindi/templates/base_handler.rb
Instance Attribute Summary collapse
-
#event_payload ⇒ Object
readonly
Returns the value of attribute event_payload.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(event_payload) ⇒ BaseHandler
constructor
A new instance of BaseHandler.
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_payload ⇒ Object (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
#call ⇒ Object
12 13 14 |
# File 'lib/generators/vindi/templates/base_handler.rb', line 12 def call raise NotImplementedError, "#{self.class} must implement #call" end |