Sha256: db22532df6c02ac943720d5a063e9895902aa83bfb886adbbec5990164c2abc3

Contents?: true

Size: 578 Bytes

Versions: 3

Compression:

Stored size: 578 Bytes

Contents

module Phaxio
  module Resources
    # This class is provided for the sake of backwards compatibility; use the Webhook resource instead.
    # @see Phaxio::Resources::Webhook
    class Callback
      class << self
        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
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phaxio-2.1.2 lib/phaxio/resources/callback.rb
phaxio-2.1.1 lib/phaxio/resources/callback.rb
phaxio-2.1.0 lib/phaxio/resources/callback.rb