Class: SportsOddsAPI::Models::Stat::SupportedLevels
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- SportsOddsAPI::Models::Stat::SupportedLevels
- Defined in:
- lib/sports_odds_api/models/stat.rb,
sig/sports_odds_api/models/stat.rbs
Overview
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ SupportedLevels
constructor
A new instance of SupportedLevels.
- #to_hash ⇒ { all: bool, player: bool, team: bool }
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 ⇒ SupportedLevels
Returns a new instance of SupportedLevels.
98 |
# File 'sig/sports_odds_api/models/stat.rbs', line 98
def initialize: (?all: bool, ?player: bool, ?team: bool) -> void
|
Instance Attribute Details
#all ⇒ Boolean?
74 |
# File 'lib/sports_odds_api/models/stat.rb', line 74 optional :all, SportsOddsAPI::Internal::Type::Boolean |
#player ⇒ Boolean?
79 |
# File 'lib/sports_odds_api/models/stat.rb', line 79 optional :player, SportsOddsAPI::Internal::Type::Boolean |
#team ⇒ Boolean?
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 }
100 |
# File 'sig/sports_odds_api/models/stat.rbs', line 100
def to_hash: -> { all: bool, player: bool, team: bool }
|