Class: MLB::LinescoreTeam
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::LinescoreTeam
- Defined in:
- lib/mlb/linescore_teams.rb
Overview
Represents one team’s linescore totals
Instance Attribute Summary collapse
-
#errors ⇒ Integer
Returns total errors.
-
#hits ⇒ Integer
Returns total hits.
-
#is_winner ⇒ Boolean
Returns whether this team won.
-
#left_on_base ⇒ Integer
Returns total left on base.
-
#runs ⇒ Integer
Returns total runs.
Instance Method Summary collapse
-
#winner? ⇒ Boolean
Returns whether this team won.
Instance Attribute Details
#errors ⇒ Integer
Returns total errors
29 |
# File 'lib/mlb/linescore_teams.rb', line 29 attribute :errors, Shale::Type::Integer |
#hits ⇒ Integer
Returns total hits
21 |
# File 'lib/mlb/linescore_teams.rb', line 21 attribute :hits, Shale::Type::Integer |
#is_winner ⇒ Boolean
Returns whether this team won
45 |
# File 'lib/mlb/linescore_teams.rb', line 45 attribute :is_winner, Shale::Type::Boolean |
#left_on_base ⇒ Integer
Returns total left on base
37 |
# File 'lib/mlb/linescore_teams.rb', line 37 attribute :left_on_base, Shale::Type::Integer |
#runs ⇒ Integer
Returns total runs
13 |
# File 'lib/mlb/linescore_teams.rb', line 13 attribute :runs, Shale::Type::Integer |
Instance Method Details
#winner? ⇒ Boolean
Returns whether this team won
53 54 55 |
# File 'lib/mlb/linescore_teams.rb', line 53 def winner? is_winner end |