Class: SportsOddsAPI::Models::Stat::SupportedLevels

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/sports_odds_api/models/stat.rb,
sig/sports_odds_api/models/stat.rbs

Overview

See Also:

  • SportsOddsAPI::Models::Stat#supported_levels

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#initializeSupportedLevels

Returns a new instance of SupportedLevels.

Parameters:

  • all: (Boolean)
  • player: (Boolean)
  • team: (Boolean)


98
# File 'sig/sports_odds_api/models/stat.rbs', line 98

def initialize: (?all: bool, ?player: bool, ?team: bool) -> void

Instance Attribute Details

#allBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


74
# File 'lib/sports_odds_api/models/stat.rb', line 74

optional :all, SportsOddsAPI::Internal::Type::Boolean

#playerBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


79
# File 'lib/sports_odds_api/models/stat.rb', line 79

optional :player, SportsOddsAPI::Internal::Type::Boolean

#teamBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


84
# File 'lib/sports_odds_api/models/stat.rb', line 84

optional :team, SportsOddsAPI::Internal::Type::Boolean

Instance Method Details

#to_hash{ all: bool, player: bool, team: bool }

Returns:

  • ({ all: bool, player: bool, team: bool })


100
# File 'sig/sports_odds_api/models/stat.rbs', line 100

def to_hash: -> { all: bool, player: bool, team: bool }