Class: MLB::PlayCount

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

Overview

Represents the count during a play

Instance Attribute Summary collapse

Instance Attribute Details

#ballsInteger

Returns the ball count

Examples:

count.balls #=> 1

Returns:

  • (Integer)

    the balls



192
# File 'lib/mlb/play.rb', line 192

attribute :balls, Shale::Type::Integer

#outsInteger

Returns the out count

Examples:

count.outs #=> 1

Returns:

  • (Integer)

    the outs



208
# File 'lib/mlb/play.rb', line 208

attribute :outs, Shale::Type::Integer

#strikesInteger

Returns the strike count

Examples:

count.strikes #=> 1

Returns:

  • (Integer)

    the strikes



200
# File 'lib/mlb/play.rb', line 200

attribute :strikes, Shale::Type::Integer