Class: Fuik::Event
- Inherits:
-
Object
- Object
- Fuik::Event
- Defined in:
- app/models/fuik/event.rb
Instance Method Summary collapse
-
#initialize(webhook_event) ⇒ Event
constructor
A new instance of Event.
- #payload ⇒ Object
- #process! ⇒ Object
Constructor Details
#initialize(webhook_event) ⇒ Event
Returns a new instance of Event.
7 8 9 |
# File 'app/models/fuik/event.rb', line 7 def initialize(webhook_event) @webhook_event = webhook_event end |
Instance Method Details
#payload ⇒ Object
15 16 17 |
# File 'app/models/fuik/event.rb', line 15 def payload @webhook_event.payload.to_dot end |
#process! ⇒ Object
11 12 13 |
# File 'app/models/fuik/event.rb', line 11 def process! raise NotImplementedError, "#{self.class} must implement #process!" end |