Class: MLB::AttendanceRecord

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

Overview

Represents an attendance record for a team

Instance Attribute Summary collapse

Instance Attribute Details

#attendance_average_awayInteger

Returns the average away attendance

Examples:

attendance_record.attendance_average_away #=> 32569

Returns:

  • (Integer)

    the average away attendance



112
# File 'lib/mlb/attendance_record.rb', line 112

attribute :attendance_average_away, Shale::Type::Integer

#attendance_average_homeInteger

Returns the average home attendance

Examples:

attendance_record.attendance_average_home #=> 41897

Returns:

  • (Integer)

    the average home attendance



104
# File 'lib/mlb/attendance_record.rb', line 104

attribute :attendance_average_home, Shale::Type::Integer

#attendance_average_ytdInteger

Returns the average year-to-date attendance

Examples:

attendance_record.attendance_average_ytd #=> 37175

Returns:

  • (Integer)

    the average YTD attendance



120
# File 'lib/mlb/attendance_record.rb', line 120

attribute :attendance_average_ytd, Shale::Type::Integer

#attendance_highInteger

Returns the highest single-game attendance

Examples:

attendance_record.attendance_high #=> 48760

Returns:

  • (Integer)

    the highest attendance



128
# File 'lib/mlb/attendance_record.rb', line 128

attribute :attendance_high, Shale::Type::Integer

#attendance_lowInteger

Returns the lowest single-game attendance

Examples:

attendance_record.attendance_low #=> 30060

Returns:

  • (Integer)

    the lowest attendance



136
# File 'lib/mlb/attendance_record.rb', line 136

attribute :attendance_low, Shale::Type::Integer

#attendance_totalInteger

Returns the total attendance

Examples:

attendance_record.attendance_total #=> 5947960

Returns:

  • (Integer)

    the total attendance



80
# File 'lib/mlb/attendance_record.rb', line 80

attribute :attendance_total, Shale::Type::Integer

#attendance_total_awayInteger

Returns the total away attendance

Examples:

attendance_record.attendance_total_away #=> 2638122

Returns:

  • (Integer)

    the total away attendance



96
# File 'lib/mlb/attendance_record.rb', line 96

attribute :attendance_total_away, Shale::Type::Integer

#attendance_total_homeInteger

Returns the total home attendance

Examples:

attendance_record.attendance_total_home #=> 3309838

Returns:

  • (Integer)

    the total home attendance



88
# File 'lib/mlb/attendance_record.rb', line 88

attribute :attendance_total_home, Shale::Type::Integer

#games_away_totalInteger

Returns the total away games

Examples:

attendance_record.games_away_total #=> 82

Returns:

  • (Integer)

    the total away games



72
# File 'lib/mlb/attendance_record.rb', line 72

attribute :games_away_total, Shale::Type::Integer

#games_home_totalInteger

Returns the total home games

Examples:

attendance_record.games_home_total #=> 83

Returns:

  • (Integer)

    the total home games



64
# File 'lib/mlb/attendance_record.rb', line 64

attribute :games_home_total, Shale::Type::Integer

#games_totalInteger

Returns the total number of games

Examples:

attendance_record.games_total #=> 165

Returns:

  • (Integer)

    the total games



56
# File 'lib/mlb/attendance_record.rb', line 56

attribute :games_total, Shale::Type::Integer

#openings_totalInteger

Returns the total number of openings

Examples:

attendance_record.openings_total #=> 160

Returns:

  • (Integer)

    the total openings



32
# File 'lib/mlb/attendance_record.rb', line 32

attribute :openings_total, Shale::Type::Integer

#openings_total_awayInteger

Returns the total away openings

Examples:

attendance_record.openings_total_away #=> 81

Returns:

  • (Integer)

    the total away openings



48
# File 'lib/mlb/attendance_record.rb', line 48

attribute :openings_total_away, Shale::Type::Integer

#openings_total_homeInteger

Returns the total home openings

Examples:

attendance_record.openings_total_home #=> 79

Returns:

  • (Integer)

    the total home openings



40
# File 'lib/mlb/attendance_record.rb', line 40

attribute :openings_total_home, Shale::Type::Integer

#teamTeam

Returns the team

Examples:

attendance_record.team #=> #<MLB::Team>

Returns:

  • (Team)

    the team



24
# File 'lib/mlb/attendance_record.rb', line 24

attribute :team, Team

#yearString

Returns the year of the attendance record

Examples:

attendance_record.year #=> "2024"

Returns:

  • (String)

    the year



16
# File 'lib/mlb/attendance_record.rb', line 16

attribute :year, Shale::Type::String