Class: Noticed::BulkDeliveryMethods::Webhook

Inherits:
Noticed::BulkDeliveryMethod show all
Defined in:
lib/noticed/bulk_delivery_methods/webhook.rb

Instance Attribute Summary

Attributes inherited from Noticed::BulkDeliveryMethod

#config, #event

Instance Method Summary collapse

Methods inherited from Noticed::BulkDeliveryMethod

#evaluate_option, #fetch_constant, #perform

Methods included from ApiClient

#post_request

Instance Method Details

#deliverObject



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