Method: Unit::Webhook::CreateWebhookRequest#initialize

Defined in:
lib/unit/models/webhook/create_webhook_request.rb

#initialize(label, url, token, content_type, delivery_mode, include_resources = nil, subscription_type = nil) ⇒ CreateWebhookRequest

Returns a new instance of CreateWebhookRequest.

Parameters:

  • label (String)
  • url (String)
  • token (String)
  • content_type (String)
  • delivery_mode (String)
  • include_resources (Boolean) (defaults to: nil)
    • optional

  • subscription_type (String) (defaults to: nil)
    • optional



18
19
20
21
22
23
24
25
26
27
# File 'lib/unit/models/webhook/create_webhook_request.rb', line 18

def initialize(label, url, token, content_type, delivery_mode,
               include_resources = nil, subscription_type = nil)
  @label = label
  @url = url
  @token = token
  @content_type = content_type
  @delivery_mode = delivery_mode
  @include_resources = include_resources
  @subscription_type = subscription_type
end