class ActiveWebhook::Verification::BaseAdapter

Protected Class Methods

component_name() click to toggle source
# File lib/active_webhook/verification/base_adapter.rb, line 18
def self.component_name
  "verification"
end

Public Instance Methods

call() click to toggle source
# File lib/active_webhook/verification/base_adapter.rb, line 8
def call
  return {} unless secret.present?

  {
    strategy => signature
  }
end

Protected Instance Methods

signature() click to toggle source
# File lib/active_webhook/verification/base_adapter.rb, line 22
def signature
  raise NotImplementedError, "#signature must be implemented."
end
strategy() click to toggle source
# File lib/active_webhook/verification/base_adapter.rb, line 26
def strategy
  self.class.name.delete_suffix("Adapter")
end