Module: TrelloWebhook::Processor
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/trello_webhook/processor.rb
Defined Under Namespace
Classes: CallbackNotImplementedError, SignatureError, UnspecifiedWebhookSecretError
Instance Method Summary
collapse
Instance Method Details
#create ⇒ Object
15
16
17
18
19
20
21
22
|
# File 'lib/trello_webhook/processor.rb', line 15
def create
if self.respond_to? event
self.send event, json_body
head(:ok)
else
fail CallbackNotImplementedError, "#{self.class.name}##{event} not implemented"
end
end
|
#show ⇒ Object
24
25
26
27
28
29
30
|
# File 'lib/trello_webhook/processor.rb', line 24
def show
if request.head?
puts "[TrelloWebhook::Processor] Hook ping received"
p request_body
head :ok
end
end
|