Class: MLB::Play

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

Overview

Represents a play in a game

Instance Attribute Summary collapse

Instance Attribute Details

#aboutPlayAbout

Returns the play info

Examples:

play.about #=> #<MLB::PlayAbout>

Returns:



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

attribute :about, PlayAbout

#countPlayCount

Returns the count

Examples:

play.count #=> #<MLB::PlayCount>

Returns:



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

attribute :count, PlayCount

#matchupPlayMatchup

Returns the matchup

Examples:

play.matchup #=> #<MLB::PlayMatchup>

Returns:



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

attribute :matchup, PlayMatchup

#resultPlayResult

Returns the play result

Examples:

play.result #=> #<MLB::PlayResult>

Returns:



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

attribute :result, PlayResult