Class: Believe::Models::MatchCreateParams

Inherits:
Internal::Type::BaseModel show all
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

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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

Parameters:

  • away_team_id (String)

    Away team ID

  • date (Time)

    Match date and time

  • home_team_id (String)

    Home team ID

  • match_type (Symbol, ::Believe::Models::MatchType)

    Type of match

  • attendance (Integer, nil) (defaults to: nil)

    Match attendance

  • away_score (Integer) (defaults to: nil)

    Away team score

  • episode_id (String, nil) (defaults to: nil)

    Episode ID where this match is featured

  • home_score (Integer) (defaults to: nil)

    Home team score

  • lesson_learned (String, nil) (defaults to: nil)

    The life lesson learned from this match

  • possession_percentage (Float, nil) (defaults to: nil)

    Home team possession percentage

  • result (Symbol, ::Believe::Models::MatchResult) (defaults to: nil)

    Match result from home team perspective

  • ted_halftime_speech (String, nil) (defaults to: nil)

    Ted’s inspirational halftime speech

  • ticket_revenue_gbp (Float, String, nil) (defaults to: nil)

    Total ticket revenue in GBP

  • turning_points (Array<::Believe::Models::TurningPoint>) (defaults to: nil)

    Key moments that changed the match

  • weather_temp_celsius (Float, nil) (defaults to: nil)

    Temperature at kickoff in Celsius

  • request_options (::Believe::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/believe/models/match_create_params.rb', line 100

Instance Attribute Details

#attendanceInteger?

Match attendance

Returns:

  • (Integer, nil)


38
# File 'lib/believe/models/match_create_params.rb', line 38

optional :attendance, Integer, nil?: true

#away_scoreInteger?

Away team score

Returns:

  • (Integer, nil)


44
# File 'lib/believe/models/match_create_params.rb', line 44

optional :away_score, Integer

#away_team_idString

Away team ID

Returns:

  • (String)


14
# File 'lib/believe/models/match_create_params.rb', line 14

required :away_team_id, String

#dateTime

Match date and time

Returns:

  • (Time)


20
# File 'lib/believe/models/match_create_params.rb', line 20

required :date, Time

#episode_idString?

Episode ID where this match is featured

Returns:

  • (String, nil)


50
# File 'lib/believe/models/match_create_params.rb', line 50

optional :episode_id, String, nil?: true

#home_scoreInteger?

Home team score

Returns:

  • (Integer, nil)


56
# File 'lib/believe/models/match_create_params.rb', line 56

optional :home_score, Integer

#home_team_idString

Home team ID

Returns:

  • (String)


26
# File 'lib/believe/models/match_create_params.rb', line 26

required :home_team_id, String

#lesson_learnedString?

The life lesson learned from this match

Returns:

  • (String, nil)


62
# File 'lib/believe/models/match_create_params.rb', line 62

optional :lesson_learned, String, nil?: true

#match_typeSymbol, ::Believe::Models::MatchType

Type of match

Returns:



32
# File 'lib/believe/models/match_create_params.rb', line 32

required :match_type, enum: -> { ::Believe::MatchType }

#possession_percentageFloat?

Home team possession percentage

Returns:

  • (Float, nil)


68
# File 'lib/believe/models/match_create_params.rb', line 68

optional :possession_percentage, Float, nil?: true

#resultSymbol, ...

Match result from home team perspective

Returns:



74
# File 'lib/believe/models/match_create_params.rb', line 74

optional :result, enum: -> { ::Believe::MatchResult }

#ted_halftime_speechString?

Ted’s inspirational halftime speech

Returns:

  • (String, nil)


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

optional :ted_halftime_speech, String, nil?: true

#ticket_revenue_gbpFloat, ...

Total ticket revenue in GBP

Returns:

  • (Float, String, nil)


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

optional :ticket_revenue_gbp, union: -> { ::Believe::MatchCreateParams::TicketRevenueGbp }, nil?: true

#turning_pointsArray<::Believe::Models::TurningPoint>?

Key moments that changed the match

Returns:



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

optional :turning_points, -> { ::Believe::Internal::Type::ArrayOf[::Believe::TurningPoint] }

#weather_temp_celsiusFloat?

Temperature at kickoff in Celsius

Returns:

  • (Float, nil)


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

optional :weather_temp_celsius, Float, nil?: true