Class: Believe::Models::WebhookTriggerEventParams::Payload::MatchCompleted::Data

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

Overview

See Also:

Defined Under Namespace

Modules: MatchType, Result

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(away_score:, away_team_id:, completed_at:, home_score:, home_team_id:, match_id:, match_type:, result:, ted_post_match_quote:, lesson_learned: nil, man_of_the_match: nil) ⇒ Object

Event data

Parameters:



# File 'lib/believe/models/webhook_trigger_event_params.rb', line 143

Instance Attribute Details

#away_scoreInteger

Final away team score

Returns:

  • (Integer)


80
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 80

required :away_score, Integer

#away_team_idString

Away team ID

Returns:

  • (String)


86
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 86

required :away_team_id, String

#completed_atTime

When the match completed

Returns:

  • (Time)


92
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 92

required :completed_at, Time

#home_scoreInteger

Final home team score

Returns:

  • (Integer)


98
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 98

required :home_score, Integer

#home_team_idString

Home team ID

Returns:

  • (String)


104
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 104

required :home_team_id, String

#lesson_learnedString?

Ted’s lesson from the match

Returns:

  • (String, nil)


135
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 135

optional :lesson_learned, String, nil?: true

#man_of_the_matchString?

Player of the match (if awarded)

Returns:

  • (String, nil)


141
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 141

optional :man_of_the_match, String, nil?: true

#match_idString

Unique match identifier

Returns:

  • (String)


110
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 110

required :match_id, String

#match_typeSymbol, ::Believe::Models::WebhookTriggerEventParams::Payload::MatchCompleted::Data::MatchType

Type of match



116
117
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 116

required :match_type,
enum: -> { ::Believe::WebhookTriggerEventParams::Payload::MatchCompleted::Data::MatchType }

#resultSymbol, ::Believe::Models::WebhookTriggerEventParams::Payload::MatchCompleted::Data::Result

Match result from home team perspective



123
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 123

required :result, enum: -> { ::Believe::WebhookTriggerEventParams::Payload::MatchCompleted::Data::Result }

#ted_post_match_quoteString

Ted’s post-match wisdom

Returns:

  • (String)


129
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 129

required :ted_post_match_quote, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/believe/models/webhook_trigger_event_params.rb', line 180