Class: Believe::Models::MatchCompletedWebhookEvent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/believe/models/match_completed_webhook_event.rb

Defined Under Namespace

Modules: EventType Classes: Data

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(created_at:, data:, event_id:, event_type:) ⇒ Object

Webhook event sent when a match completes.

Parameters:



# File 'lib/believe/models/match_completed_webhook_event.rb', line 30

Instance Attribute Details

#created_atTime

When the event was created

Returns:

  • (Time)


10
# File 'lib/believe/models/match_completed_webhook_event.rb', line 10

required :created_at, Time

#data::Believe::Models::MatchCompletedWebhookEvent::Data

Data payload for a match completed event.



16
# File 'lib/believe/models/match_completed_webhook_event.rb', line 16

required :data, -> { ::Believe::MatchCompletedWebhookEvent::Data }

#event_idString

Unique identifier for this event

Returns:

  • (String)


22
# File 'lib/believe/models/match_completed_webhook_event.rb', line 22

required :event_id, String

#event_typeSymbol, ::Believe::Models::MatchCompletedWebhookEvent::EventType

The type of webhook event



28
# File 'lib/believe/models/match_completed_webhook_event.rb', line 28

required :event_type, enum: -> { ::Believe::MatchCompletedWebhookEvent::EventType }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/believe/models/match_completed_webhook_event.rb', line 160