Skip to content

Instantly share code, notes, and snippets.

@victorgiraldes
Created November 21, 2019 17:12
Show Gist options
  • Save victorgiraldes/dd7ef5ad09dafaf0ce1f69102003202c to your computer and use it in GitHub Desktop.
Save victorgiraldes/dd7ef5ad09dafaf0ce1f69102003202c to your computer and use it in GitHub Desktop.
require './lib/services/webhook/base'
module Services
module Webhook
class WebhookData < Services::Webhook::Base
def create(params)
url.concat('/webhook')
http_post(params)
end
def all
url.concat('/webhook')
http_get()
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment