Class: Phaxio::Resources::Callback
- Inherits:
-
Object
- Object
- Phaxio::Resources::Callback
- Defined in:
- lib/phaxio/resources/callback.rb
Overview
This class is provided for the sake of backwards compatibility; use the Webhook resource instead.
Class Method Summary collapse
Class Method Details
.valid_signature?(*args) ⇒ Boolean
7 8 9 10 11 12 13 14 15 |
# File 'lib/phaxio/resources/callback.rb', line 7 def valid_signature? *args Phaxio::Resources::Webhook.valid_signature? *args rescue Error::PhaxioError => error if error. == 'No webhook token has been set' raise Error::PhaxioError, 'No callback token has been set' else raise error end end |