Class: Straddle::Models::PlatformEventV1WebhookEvent::Data::StatusDetail

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

Overview

See Also:

  • Straddle::Models::PlatformEventV1WebhookEvent::Data#status_detail

Defined Under Namespace

Modules: Reason, Source

Instance Attribute Summary collapse

Class Method 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(code:, message:, reason:, source:) ⇒ Object

Parameters:



# File 'lib/straddle/models/platform_event_v1_webhook_event.rb', line 145

Instance Attribute Details

#code ⇒ String

Machine-readable code for the current platform status.

Parameters:

  • value (String)

Returns:

  • (String)


125
# File 'lib/straddle/models/platform_event_v1_webhook_event.rb', line 125

required :code, String

#message ⇒ String

Human-readable explanation of the current platform status.

Parameters:

  • value (String)

Returns:

  • (String)


131
# File 'lib/straddle/models/platform_event_v1_webhook_event.rb', line 131

required :message, String

#reason ⇒ Symbol, Straddle::Models::PlatformEventV1WebhookEvent::Data::StatusDetail::Reason

Machine-readable reason for the current platform status.

Parameters:

  • value (Straddle::Models::PlatformEventV1WebhookEvent::Data::StatusDetail::reason)

Returns:



137
# File 'lib/straddle/models/platform_event_v1_webhook_event.rb', line 137

required :reason, enum: -> { Straddle::PlatformEventV1WebhookEvent::Data::StatusDetail::Reason }

#source ⇒ Symbol, Straddle::Models::PlatformEventV1WebhookEvent::Data::StatusDetail::Source

Source that produced the current platform status.

Parameters:

  • value (Straddle::Models::PlatformEventV1WebhookEvent::Data::StatusDetail::source)

Returns:



143
# File 'lib/straddle/models/platform_event_v1_webhook_event.rb', line 143

required :source, enum: -> { Straddle::PlatformEventV1WebhookEvent::Data::StatusDetail::Source }

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/straddle/models/platform_event_v1_webhook_event.rb', line 170

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


127
# File 'sig/straddle/models/platform_event_v1_webhook_event.rbs', line 127

def to_hash: -> {