Class: Noticed::BulkDeliveryMethods::Webhook
- Inherits:
-
Noticed::BulkDeliveryMethod
- Object
- ActiveJob::Base
- ApplicationJob
- Noticed::BulkDeliveryMethod
- Noticed::BulkDeliveryMethods::Webhook
- Defined in:
- lib/noticed/bulk_delivery_methods/webhook.rb
Instance Attribute Summary
Attributes inherited from Noticed::BulkDeliveryMethod
Instance Method Summary collapse
Methods inherited from Noticed::BulkDeliveryMethod
#evaluate_option, #fetch_constant, #perform
Methods included from ApiClient
Instance Method Details
#deliver ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/noticed/bulk_delivery_methods/webhook.rb', line 6 def deliver Rails.logger.debug(evaluate_option(:json)) post_request( evaluate_option(:url), basic_auth: evaluate_option(:basic_auth), headers: evaluate_option(:headers), json: evaluate_option(:json), form: evaluate_option(:form) ) end |