Class: Courier::Models::Automations::InvokeInvokeAdHocParams::Automation::Step::AutomationFetchDataStep::Webhook
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::Automations::InvokeInvokeAdHocParams::Automation::Step::AutomationFetchDataStep::Webhook
- Defined in:
- lib/courier/models/automations/invoke_invoke_ad_hoc_params.rb,
sig/courier/models/automations/invoke_invoke_ad_hoc_params.rbs
Overview
Defined Under Namespace
Modules: Method
Instance Attribute Summary collapse
- #body ⇒ String?
- #headers ⇒ Hash{Symbol=>String}?
- #method_ ⇒ Symbol, Courier::Models::Automations::InvokeInvokeAdHocParams::Automation::Step::AutomationFetchDataStep::Webhook::Method
- #url ⇒ String
Instance Method Summary collapse
-
#initialize(method_:, url:, body: nil, headers: nil) ⇒ Webhook
constructor
A new instance of Webhook.
- #to_hash ⇒ { method_: Courier::Models::Automations::InvokeInvokeAdHocParams::Automation::Step::AutomationFetchDataStep::Webhook::method_, url: String, body: String?, headers: ::Hash[Symbol, String]? }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(method_:, url:, body: nil, headers: nil) ⇒ Webhook
Returns a new instance of Webhook.
|
|
# File 'lib/courier/models/automations/invoke_invoke_ad_hoc_params.rb', line 364
|
Instance Attribute Details
#body ⇒ String?
357 |
# File 'lib/courier/models/automations/invoke_invoke_ad_hoc_params.rb', line 357 optional :body, String, nil?: true |
#headers ⇒ Hash{Symbol=>String}?
362 |
# File 'lib/courier/models/automations/invoke_invoke_ad_hoc_params.rb', line 362 optional :headers, Courier::Internal::Type::HashOf[String], nil?: true |
#method_ ⇒ Symbol, Courier::Models::Automations::InvokeInvokeAdHocParams::Automation::Step::AutomationFetchDataStep::Webhook::Method
343 344 345 346 347 |
# File 'lib/courier/models/automations/invoke_invoke_ad_hoc_params.rb', line 343 required :method_, enum: -> { Courier::Automations::InvokeInvokeAdHocParams::Automation::Step::AutomationFetchDataStep::Webhook::Method }, api_name: :method |
#url ⇒ String
352 |
# File 'lib/courier/models/automations/invoke_invoke_ad_hoc_params.rb', line 352 required :url, String |
Instance Method Details
#to_hash ⇒ { method_: Courier::Models::Automations::InvokeInvokeAdHocParams::Automation::Step::AutomationFetchDataStep::Webhook::method_, url: String, body: String?, headers: ::Hash[Symbol, String]? }
376 377 378 379 380 381 |
# File 'sig/courier/models/automations/invoke_invoke_ad_hoc_params.rbs', line 376
def to_hash: -> {
method_: Courier::Models::Automations::InvokeInvokeAdHocParams::Automation::Step::AutomationFetchDataStep::Webhook::method_,
url: String,
body: String?,
headers: ::Hash[Symbol, String]?
}
|