Class: Believe::Models::WebhookTriggerEventParams::Payload::MatchCompleted::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Believe::Models::WebhookTriggerEventParams::Payload::MatchCompleted::Data
- Defined in:
- lib/believe/models/webhook_trigger_event_params.rb
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#away_score ⇒ Integer
Final away team score.
-
#away_team_id ⇒ String
Away team ID.
-
#completed_at ⇒ Time
When the match completed.
-
#home_score ⇒ Integer
Final home team score.
-
#home_team_id ⇒ String
Home team ID.
-
#lesson_learned ⇒ String?
Ted’s lesson from the match.
-
#man_of_the_match ⇒ String?
Player of the match (if awarded).
-
#match_id ⇒ String
Unique match identifier.
-
#match_type ⇒ Symbol, ::Believe::Models::WebhookTriggerEventParams::Payload::MatchCompleted::Data::MatchType
Type of match.
-
#result ⇒ Symbol, ::Believe::Models::WebhookTriggerEventParams::Payload::MatchCompleted::Data::Result
Match result from home team perspective.
-
#ted_post_match_quote ⇒ String
Ted’s post-match wisdom.
Class Method Summary collapse
Instance Method Summary collapse
-
#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
constructor
Event data.
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
|
|
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 143
|
Instance Attribute Details
#away_score ⇒ Integer
Final away team score
80 |
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 80 required :away_score, Integer |
#away_team_id ⇒ String
Away team ID
86 |
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 86 required :away_team_id, String |
#completed_at ⇒ Time
When the match completed
92 |
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 92 required :completed_at, Time |
#home_score ⇒ Integer
Final home team score
98 |
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 98 required :home_score, Integer |
#home_team_id ⇒ String
Home team ID
104 |
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 104 required :home_team_id, String |
#lesson_learned ⇒ String?
Ted’s lesson from the match
135 |
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 135 optional :lesson_learned, String, nil?: true |
#man_of_the_match ⇒ String?
Player of the match (if awarded)
141 |
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 141 optional :man_of_the_match, String, nil?: true |
#match_id ⇒ String
Unique match identifier
110 |
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 110 required :match_id, String |
#match_type ⇒ Symbol, ::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 } |
#result ⇒ Symbol, ::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_quote ⇒ String
Ted’s post-match wisdom
129 |
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 129 required :ted_post_match_quote, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/believe/models/webhook_trigger_event_params.rb', line 180
|