Class: ActiveWebhook::Verification::BaseAdapter

Inherits:
Adapter
  • Object
show all
Defined in:
lib/active_webhook/verification/base_adapter.rb

Direct Known Subclasses

HMACSHA256Adapter, UnsignedAdapter

Instance Method Summary collapse

Methods inherited from Adapter

attribute, attributes, #attributes, call, component_configuration, #component_configuration, configuration, #configuration, #initialize

Constructor Details

This class inherits a constructor from ActiveWebhook::Adapter

Instance Method Details

#callObject



8
9
10
11
12
13
14
# File 'lib/active_webhook/verification/base_adapter.rb', line 8

def call
  return {} unless secret.present?

  {
    strategy => signature
  }
end