Class: Sinatra::Parsers::WebhookWWWFormURLEncodedParser
- Inherits:
-
Object
- Object
- Sinatra::Parsers::WebhookWWWFormURLEncodedParser
- Includes:
- WebhookParser
- Defined in:
- lib/parsers/webhook_www_form_url_encoded_parser.rb
Overview
rubocop:disable Style/Documentation
Instance Attribute Summary
Attributes included from WebhookParser
Instance Method Summary collapse
Methods included from WebhookParser
#bitbucket_webhook?, #branch, #call, #deleted?, #detect_vcs, #github_webhook?, #gitlab_webhook?, #repo_name, #repo_user, #stash_webhook?, #tfs_webhook?
Instance Method Details
#parse_data(body) ⇒ Object
11 12 13 |
# File 'lib/parsers/webhook_www_form_url_encoded_parser.rb', line 11 def parse_data(body) JSON.parse(CGI.unescape(body).gsub(%r{^payload\=}, '')) end |