Class: MLB::GamePaceStats

Inherits:
Shale::Mapper
  • Object
show all
Defined in:
lib/mlb/game_pace.rb

Overview

Represents game pace statistics

Instance Attribute Summary collapse

Instance Attribute Details

#hits_per_9innFloat

Returns hits per 9 innings

Examples:

stats.hits_per_9inn #=> 16.63

Returns:

  • (Float)

    the hits per 9 innings



13
# File 'lib/mlb/game_pace.rb', line 13

attribute :hits_per_9inn, Shale::Type::Float

#hits_per_gameFloat

Returns hits per game

Examples:

stats.hits_per_game #=> 16.39

Returns:

  • (Float)

    the hits per game



37
# File 'lib/mlb/game_pace.rb', line 37

attribute :hits_per_game, Shale::Type::Float

#pitches_per_9innFloat

Returns pitches per 9 innings

Examples:

stats.pitches_per_9inn #=> 296.2

Returns:

  • (Float)

    the pitches per 9 innings



29
# File 'lib/mlb/game_pace.rb', line 29

attribute :pitches_per_9inn, Shale::Type::Float

#pitches_per_gameFloat

Returns pitches per game

Examples:

stats.pitches_per_game #=> 292.1

Returns:

  • (Float)

    the pitches per game



53
# File 'lib/mlb/game_pace.rb', line 53

attribute :pitches_per_game, Shale::Type::Float

#runs_per_9innFloat

Returns runs per 9 innings

Examples:

stats.runs_per_9inn #=> 8.91

Returns:

  • (Float)

    the runs per 9 innings



21
# File 'lib/mlb/game_pace.rb', line 21

attribute :runs_per_9inn, Shale::Type::Float

#runs_per_gameFloat

Returns runs per game

Examples:

stats.runs_per_game #=> 8.79

Returns:

  • (Float)

    the runs per game



45
# File 'lib/mlb/game_pace.rb', line 45

attribute :runs_per_game, Shale::Type::Float

#seasonString

Returns the season

Examples:

stats.season #=> "2024"

Returns:

  • (String)

    the season



117
# File 'lib/mlb/game_pace.rb', line 117

attribute :season, Shale::Type::String

#sportSport

Returns the sport

Examples:

stats.sport #=> #<MLB::Sport>

Returns:



125
# File 'lib/mlb/game_pace.rb', line 125

attribute :sport, Sport

#time_per_gameString

Returns average time per game

Examples:

stats.time_per_game #=> "02:38:44"

Returns:

  • (String)

    the time per game



101
# File 'lib/mlb/game_pace.rb', line 101

attribute :time_per_game, Shale::Type::String

#time_per_pitchString

Returns average time per pitch

Examples:

stats.time_per_pitch #=> "00:00:32"

Returns:

  • (String)

    the time per pitch



109
# File 'lib/mlb/game_pace.rb', line 109

attribute :time_per_pitch, Shale::Type::String

#total_gamesInteger

Returns total games

Examples:

stats.total_games #=> 2429

Returns:

  • (Integer)

    the total games



61
# File 'lib/mlb/game_pace.rb', line 61

attribute :total_games, Shale::Type::Integer

#total_hitsInteger

Returns total hits

Examples:

stats.total_hits #=> 39823

Returns:

  • (Integer)

    the total hits



77
# File 'lib/mlb/game_pace.rb', line 77

attribute :total_hits, Shale::Type::Integer

#total_innings_playedFloat

Returns total innings played

Examples:

stats.total_innings_played #=> 21626.5

Returns:

  • (Float)

    the total innings



69
# File 'lib/mlb/game_pace.rb', line 69

attribute :total_innings_played, Shale::Type::Float

#total_pitchesInteger

Returns total pitches

Examples:

stats.total_pitches #=> 709511

Returns:

  • (Integer)

    the total pitches



93
# File 'lib/mlb/game_pace.rb', line 93

attribute :total_pitches, Shale::Type::Integer

#total_runsInteger

Returns total runs

Examples:

stats.total_runs #=> 21343

Returns:

  • (Integer)

    the total runs



85
# File 'lib/mlb/game_pace.rb', line 85

attribute :total_runs, Shale::Type::Integer