class JiraCache::WebhookApp
A Sinatra::Base application to process JIRA webhooks.
Defines 2 routes:
- GET /: provides a basic JSON status, - POST /: which processes a webhook.
Public Instance Methods
client()
click to toggle source
Returns the client (`JiraCache::Client`) defined on the class (see `JiraCache.webhook_app(…)`).
# File lib/jira_cache/webhook_app.rb, line 43 def client self.class.client end
default_response()
click to toggle source
# File lib/jira_cache/webhook_app.rb, line 47 def default_response { app: "jira_cache/webhook_app", status: "ok", client: client.info }.to_json end