Class: MLB::InningHalfScore

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

Overview

Represents the score for one side of an inning

Instance Attribute Summary collapse

Instance Attribute Details

#errorsInteger

Returns the errors

Examples:

inning_half_score.errors #=> 0

Returns:

  • (Integer)

    the errors



28
# File 'lib/mlb/inning_score.rb', line 28

attribute :errors, Shale::Type::Integer

#hitsInteger

Returns the hits

Examples:

inning_half_score.hits #=> 3

Returns:

  • (Integer)

    the hits



20
# File 'lib/mlb/inning_score.rb', line 20

attribute :hits, Shale::Type::Integer

#left_on_baseInteger

Returns runners left on base

Examples:

inning_half_score.left_on_base #=> 1

Returns:

  • (Integer)

    the left on base



36
# File 'lib/mlb/inning_score.rb', line 36

attribute :left_on_base, Shale::Type::Integer

#runsInteger

Returns the runs scored

Examples:

inning_half_score.runs #=> 2

Returns:

  • (Integer)

    the runs



12
# File 'lib/mlb/inning_score.rb', line 12

attribute :runs, Shale::Type::Integer