Class: ContextDev::Models::MonitorRetrieveResponse::Webhook

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/context_dev/models/monitor_retrieve_response.rb,
sig/context_dev/models/monitor_retrieve_response.rbs

Overview

See Also:

  • ContextDev::Models::MonitorRetrieveResponse#webhook

Instance Attribute Summary collapse

Instance Method Summary collapse

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(url:, secret: nil) ⇒ Webhook

Some parameter documentations has been truncated, see ContextDev::Models::MonitorRetrieveResponse::Webhook for more details.

Parameters:

  • url (String)

    Webhook URL called when a change is detected.

  • secret (String) (defaults to: nil)

    Signing secret used to verify webhook authenticity. Each delivery includes an `X

  • url: (String)
  • secret: (String) (defaults to: nil)


# File 'lib/context_dev/models/monitor_retrieve_response.rb', line 474

Instance Attribute Details

#secretString? (readonly)

Returns the value of attribute secret.

Returns:

  • (String, nil)


359
360
361
# File 'sig/context_dev/models/monitor_retrieve_response.rbs', line 359

def secret
  @secret
end

#urlString

Webhook URL called when a change is detected.

Parameters:

  • value (String)

Returns:

  • (String)


460
# File 'lib/context_dev/models/monitor_retrieve_response.rb', line 460

required :url, String

Instance Method Details

#secret=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


361
# File 'sig/context_dev/models/monitor_retrieve_response.rbs', line 361

def secret=: (String) -> String

#to_hash{ url: String, secret: String }

Returns:

  • ({ url: String, secret: String })


365
# File 'sig/context_dev/models/monitor_retrieve_response.rbs', line 365

def to_hash: -> { url: String, secret: String }