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

#errors ⇒ Integer

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

#hits ⇒ Integer

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_base ⇒ Integer

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

#runs ⇒ Integer

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