Module: Sinatra::GithubWebhooks
- Defined in:
- lib/sinatra/github_webhooks.rb,
lib/sinatra/github_webhooks/version.rb
Constant Summary collapse
- VERSION =
'0.2.0'
Instance Method Summary collapse
Instance Method Details
#github_event ⇒ Object
9 10 11 |
# File 'lib/sinatra/github_webhooks.rb', line 9 def github_event request.env['HTTP_X_GITHUB_EVENT'] end |
#payload ⇒ Object
13 14 15 |
# File 'lib/sinatra/github_webhooks.rb', line 13 def payload JSON.parse(payload_body) end |