Class: Phaxio::Resources::Webhook
- Inherits:
-
Object
- Object
- Phaxio::Resources::Webhook
- Defined in:
- lib/phaxio/resources/webhook.rb
Overview
Provides utilities for working with webhooks.
Class Method Summary collapse
-
.valid_signature?(signature, url, params, files = []) ⇒ true, false
Determines whether or not the passed signature is valid for the given url, params, and files.
Class Method Details
.valid_signature?(signature, url, params, files = []) ⇒ true, false
Determines whether or not the passed signature is valid for the given url, params, and files.
24 25 26 27 |
# File 'lib/phaxio/resources/webhook.rb', line 24 def valid_signature? signature, url, params, files = [] check_signature = generate_check_signature url, params, files check_signature == signature end |