Class: Sinatra::Parsers::WebhookJsonParser

Inherits:
Object
  • Object
show all
Includes:
WebhookParser
Defined in:
lib/parsers/webhook_json_parser.rb

Overview

rubocop:disable Style/Documentation

Instance Attribute Summary

Attributes included from WebhookParser

#data, #env

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_json_parser.rb', line 11

def parse_data(body)
  JSON.parse(body, quirks_mode: true)
end