Class: Believe::Models::MatchCompletedWebhookEvent::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Believe::Models::MatchCompletedWebhookEvent::Data
- Defined in:
- lib/believe/models/match_completed_webhook_event.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::MatchCompletedWebhookEvent::Data::MatchType
Type of match.
-
#result ⇒ Symbol, ::Believe::Models::MatchCompletedWebhookEvent::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
Data payload for a match completed event.
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
Data payload for a match completed event.
|
|
# File 'lib/believe/models/match_completed_webhook_event.rb', line 109
|
Instance Attribute Details
#away_score ⇒ Integer
Final away team score
47 |
# File 'lib/believe/models/match_completed_webhook_event.rb', line 47 required :away_score, Integer |
#away_team_id ⇒ String
Away team ID
53 |
# File 'lib/believe/models/match_completed_webhook_event.rb', line 53 required :away_team_id, String |
#completed_at ⇒ Time
When the match completed
59 |
# File 'lib/believe/models/match_completed_webhook_event.rb', line 59 required :completed_at, Time |
#home_score ⇒ Integer
Final home team score
65 |
# File 'lib/believe/models/match_completed_webhook_event.rb', line 65 required :home_score, Integer |
#home_team_id ⇒ String
Home team ID
71 |
# File 'lib/believe/models/match_completed_webhook_event.rb', line 71 required :home_team_id, String |
#lesson_learned ⇒ String?
Ted’s lesson from the match
101 |
# File 'lib/believe/models/match_completed_webhook_event.rb', line 101 optional :lesson_learned, String, nil?: true |
#man_of_the_match ⇒ String?
Player of the match (if awarded)
107 |
# File 'lib/believe/models/match_completed_webhook_event.rb', line 107 optional :man_of_the_match, String, nil?: true |
#match_id ⇒ String
Unique match identifier
77 |
# File 'lib/believe/models/match_completed_webhook_event.rb', line 77 required :match_id, String |
#match_type ⇒ Symbol, ::Believe::Models::MatchCompletedWebhookEvent::Data::MatchType
Type of match
83 |
# File 'lib/believe/models/match_completed_webhook_event.rb', line 83 required :match_type, enum: -> { ::Believe::MatchCompletedWebhookEvent::Data::MatchType } |
#result ⇒ Symbol, ::Believe::Models::MatchCompletedWebhookEvent::Data::Result
Match result from home team perspective
89 |
# File 'lib/believe/models/match_completed_webhook_event.rb', line 89 required :result, enum: -> { ::Believe::MatchCompletedWebhookEvent::Data::Result } |
#ted_post_match_quote ⇒ String
Ted’s post-match wisdom
95 |
# File 'lib/believe/models/match_completed_webhook_event.rb', line 95 required :ted_post_match_quote, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/believe/models/match_completed_webhook_event.rb', line 146
|