Class: MLB::InningScore

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

Overview

Represents the score for one inning

Instance Attribute Summary collapse

Instance Attribute Details

#awayInningHalfScore

Returns the away team’s score

Examples:

inning_score.away #=> #<MLB::InningHalfScore>

Returns:



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

attribute :away, InningHalfScore

#homeInningHalfScore

Returns the home team’s score

Examples:

inning_score.home #=> #<MLB::InningHalfScore>

Returns:



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

attribute :home, InningHalfScore

#numInteger

Returns the inning number

Examples:

inning_score.num #=> 1

Returns:

  • (Integer)

    the inning number



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

attribute :num, Shale::Type::Integer

#ordinal_numString

Returns the ordinal inning number

Examples:

inning_score.ordinal_num #=> "1st"

Returns:

  • (String)

    the ordinal number



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

attribute :ordinal_num, Shale::Type::String