Class: Phaxio::Resources::Callback

Inherits:
Object
  • Object
show all
Defined in:
lib/phaxio/resources/callback.rb

Overview

This class is provided for the sake of backwards compatibility; use the Webhook resource instead.

See Also:

Class Method Summary collapse

Class Method Details

.valid_signature?(*args) ⇒ Boolean

Returns:

  • (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.message == 'No webhook token has been set'
    raise Error::PhaxioError, 'No callback token has been set'
  else
    raise error
  end
end