Class: ChipRails::Webhook
- Inherits:
-
Object
- Object
- ChipRails::Webhook
- Defined in:
- lib/chip_rails.rb
Class Method Summary collapse
Class Method Details
.create ⇒ Object
162 163 164 |
# File 'lib/chip_rails.rb', line 162 def self.create ChipRails.make_request(:post, 'webhooks/', body: webhook_details) end |
.retrieve(webhook_id) ⇒ Object
166 167 168 |
# File 'lib/chip_rails.rb', line 166 def self.retrieve(webhook_id) ChipRails.make_request(:get, "webhooks/#{webhook_id}") end |