Class: PagerTree::Integrations::OutgoingWebhookDelivery
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- PagerTree::Integrations::OutgoingWebhookDelivery
- Defined in:
- app/models/pager_tree/integrations/outgoing_webhook_delivery.rb
Defined Under Namespace
Classes: HookRelay
Constant Summary collapse
- HTTP_OPTIONS =
{ headers: {"Content-Type" => "application/json"}, timeout: 15 }
Class Method Summary collapse
Class Method Details
.factory(**params) ⇒ Object
18 19 20 21 |
# File 'app/models/pager_tree/integrations/outgoing_webhook_delivery.rb', line 18 def self.factory(**params) klass = PagerTree::Integrations.outgoing_webhook_delivery_factory_class (klass.is_a?(Proc) ? klass.call : klass.to_s).constantize.new(**params) end |