module BearerRails::Webhook
Attributes
body[R]
buid[R]
Public Class Methods
included(base)
click to toggle source
# File lib/bearer-rails/webhook.rb, line 9 def self.included(base) base.extend(ClassMethods) end
new(buid:, body:)
click to toggle source
# File lib/bearer-rails/webhook.rb, line 15 def initialize(buid:, body:) @buid = buid @body = body end
registry()
click to toggle source
# File lib/bearer-rails/webhook.rb, line 5 def self.registry @registry ||= [] end
Public Instance Methods
bearer_invoke(function_name, params: {})
click to toggle source
# File lib/bearer-rails/webhook.rb, line 20 def bearer_invoke(function_name, params: {}) Bearer.call(buid, function_name, params: params) end