Class: Believe::Models::MatchCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Believe::Models::MatchCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/believe/models/match_create_params.rb
Overview
Defined Under Namespace
Modules: TicketRevenueGbp
Instance Attribute Summary collapse
-
#attendance ⇒ Integer?
Match attendance.
-
#away_score ⇒ Integer?
Away team score.
-
#away_team_id ⇒ String
Away team ID.
-
#date ⇒ Time
Match date and time.
-
#episode_id ⇒ String?
Episode ID where this match is featured.
-
#home_score ⇒ Integer?
Home team score.
-
#home_team_id ⇒ String
Home team ID.
-
#lesson_learned ⇒ String?
The life lesson learned from this match.
-
#match_type ⇒ Symbol, ::Believe::Models::MatchType
Type of match.
-
#possession_percentage ⇒ Float?
Home team possession percentage.
-
#result ⇒ Symbol, ...
Match result from home team perspective.
-
#ted_halftime_speech ⇒ String?
Ted’s inspirational halftime speech.
-
#ticket_revenue_gbp ⇒ Float, ...
Total ticket revenue in GBP.
-
#turning_points ⇒ Array<::Believe::Models::TurningPoint>?
Key moments that changed the match.
-
#weather_temp_celsius ⇒ Float?
Temperature at kickoff in Celsius.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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_team_id:, date:, home_team_id:, match_type:, attendance: nil, away_score: nil, episode_id: nil, home_score: nil, lesson_learned: nil, possession_percentage: nil, result: nil, ted_halftime_speech: nil, ticket_revenue_gbp: nil, turning_points: nil, weather_temp_celsius: nil, request_options: {}) ⇒ Object
|
|
# File 'lib/believe/models/match_create_params.rb', line 100
|
Instance Attribute Details
#attendance ⇒ Integer?
Match attendance
38 |
# File 'lib/believe/models/match_create_params.rb', line 38 optional :attendance, Integer, nil?: true |
#away_score ⇒ Integer?
Away team score
44 |
# File 'lib/believe/models/match_create_params.rb', line 44 optional :away_score, Integer |
#away_team_id ⇒ String
Away team ID
14 |
# File 'lib/believe/models/match_create_params.rb', line 14 required :away_team_id, String |
#date ⇒ Time
Match date and time
20 |
# File 'lib/believe/models/match_create_params.rb', line 20 required :date, Time |
#episode_id ⇒ String?
Episode ID where this match is featured
50 |
# File 'lib/believe/models/match_create_params.rb', line 50 optional :episode_id, String, nil?: true |
#home_score ⇒ Integer?
Home team score
56 |
# File 'lib/believe/models/match_create_params.rb', line 56 optional :home_score, Integer |
#home_team_id ⇒ String
Home team ID
26 |
# File 'lib/believe/models/match_create_params.rb', line 26 required :home_team_id, String |
#lesson_learned ⇒ String?
The life lesson learned from this match
62 |
# File 'lib/believe/models/match_create_params.rb', line 62 optional :lesson_learned, String, nil?: true |
#match_type ⇒ Symbol, ::Believe::Models::MatchType
Type of match
32 |
# File 'lib/believe/models/match_create_params.rb', line 32 required :match_type, enum: -> { ::Believe::MatchType } |
#possession_percentage ⇒ Float?
Home team possession percentage
68 |
# File 'lib/believe/models/match_create_params.rb', line 68 optional :possession_percentage, Float, nil?: true |
#result ⇒ Symbol, ...
Match result from home team perspective
74 |
# File 'lib/believe/models/match_create_params.rb', line 74 optional :result, enum: -> { ::Believe::MatchResult } |
#ted_halftime_speech ⇒ String?
Ted’s inspirational halftime speech
80 |
# File 'lib/believe/models/match_create_params.rb', line 80 optional :ted_halftime_speech, String, nil?: true |
#ticket_revenue_gbp ⇒ Float, ...
Total ticket revenue in GBP
86 |
# File 'lib/believe/models/match_create_params.rb', line 86 optional :ticket_revenue_gbp, union: -> { ::Believe::MatchCreateParams::TicketRevenueGbp }, nil?: true |
#turning_points ⇒ Array<::Believe::Models::TurningPoint>?
Key moments that changed the match
92 |
# File 'lib/believe/models/match_create_params.rb', line 92 optional :turning_points, -> { ::Believe::Internal::Type::ArrayOf[::Believe::TurningPoint] } |
#weather_temp_celsius ⇒ Float?
Temperature at kickoff in Celsius
98 |
# File 'lib/believe/models/match_create_params.rb', line 98 optional :weather_temp_celsius, Float, nil?: true |