Class: Fuik::Event

Inherits:
Object
  • Object
show all
Defined in:
app/models/fuik/event.rb

Instance Method Summary collapse

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

#payloadObject



15
16
17
# File 'app/models/fuik/event.rb', line 15

def payload
  @webhook_event.payload.to_dot
end

#process!Object

Raises:

  • (NotImplementedError)


11
12
13
# File 'app/models/fuik/event.rb', line 11

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