Module: Believe::Models::MatchUpdateParams::TicketRevenueGbp

Extended by:
Internal::Type::Union
Defined in:
lib/believe/models/match_update_params.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.variantsArray(Float, String)

Returns:

  • (Array(Float, String))


# File 'lib/believe/models/match_update_params.rb', line 134

Instance Method Details

#initialize(match_id:, attendance: nil, away_score: nil, away_team_id: nil, date: nil, episode_id: nil, home_score: nil, home_team_id: nil, lesson_learned: nil, match_type: 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:

  • match_id (String)
  • attendance (Integer, nil) (defaults to: nil)
  • away_score (Integer, nil) (defaults to: nil)
  • away_team_id (String, nil) (defaults to: nil)
  • date (Time, nil) (defaults to: nil)
  • episode_id (String, nil) (defaults to: nil)
  • home_score (Integer, nil) (defaults to: nil)
  • home_team_id (String, nil) (defaults to: nil)
  • lesson_learned (String, nil) (defaults to: nil)
  • match_type (Symbol, ::Believe::Models::MatchType, nil) (defaults to: nil)

    Types of matches.

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

    Match result types.

  • ted_halftime_speech (String, nil) (defaults to: nil)
  • ticket_revenue_gbp (Float, String, nil) (defaults to: nil)
  • turning_points (Array<::Believe::Models::TurningPoint>, nil) (defaults to: nil)
  • weather_temp_celsius (Float, nil) (defaults to: nil)
  • request_options (::Believe::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


127
128
129
130
131
132
133
134
135
136
# File 'lib/believe/models/match_update_params.rb', line 127

module TicketRevenueGbp
  extend ::Believe::Internal::Type::Union

  variant Float

  variant String

  # @!method self.variants
  #   @return [Array(Float, String)]
end