Class: SportsOddsAPI::Models::Stat
Defined Under Namespace
Classes: Displays, SupportedLevels, Units
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(all: nil, player: nil, team: nil) ⇒ Object
|
# File 'lib/sports_odds_api/models/stat.rb', line 43
|
Instance Attribute Details
#description ⇒ String?
9
|
# File 'lib/sports_odds_api/models/stat.rb', line 9
optional :description, String
|
14
|
# File 'lib/sports_odds_api/models/stat.rb', line 14
optional :displays, -> { SportsOddsAPI::Stat::Displays }
|
#is_score_stat ⇒ Boolean?
19
|
# File 'lib/sports_odds_api/models/stat.rb', line 19
optional :is_score_stat, SportsOddsAPI::Internal::Type::Boolean, api_name: :isScoreStat
|
#stat_id ⇒ String?
24
|
# File 'lib/sports_odds_api/models/stat.rb', line 24
optional :stat_id, String, api_name: :statID
|
29
|
# File 'lib/sports_odds_api/models/stat.rb', line 29
optional :supported_levels, -> { SportsOddsAPI::Stat::SupportedLevels }, api_name: :supportedLevels
|
#supported_sports ⇒ Hash{Symbol=>Object}?
34
35
36
|
# File 'lib/sports_odds_api/models/stat.rb', line 34
optional :supported_sports,
SportsOddsAPI::Internal::Type::HashOf[SportsOddsAPI::Internal::Type::Unknown],
api_name: :supportedSports
|
41
|
# File 'lib/sports_odds_api/models/stat.rb', line 41
optional :units, -> { SportsOddsAPI::Stat::Units }
|
Instance Method Details
#to_hash ⇒ {
57
|
# File 'sig/sports_odds_api/models/stat.rbs', line 57
def to_hash: -> {
|