Class: SportsOddsAPI::Models::Event::Activity

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

Overview

See Also:

  • SportsOddsAPI::Models::Event#activity

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

#initializeActivity

Returns a new instance of Activity.

Parameters:

  • count: (Float)
  • score: (Float)


119
# File 'sig/sports_odds_api/models/event.rbs', line 119

def initialize: (?count: Float, ?score: Float) -> void

Instance Attribute Details

#countFloat?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


87
# File 'lib/sports_odds_api/models/event.rb', line 87

optional :count, Float

#scoreFloat?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


92
# File 'lib/sports_odds_api/models/event.rb', line 92

optional :score, Float

Instance Method Details

#to_hash{ count: Float, score: Float }

Returns:

  • ({ count: Float, score: Float })


121
# File 'sig/sports_odds_api/models/event.rbs', line 121

def to_hash: -> { count: Float, score: Float }