Class: MLB::LeagueRecord
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::LeagueRecord
- Defined in:
- lib/mlb/team_record.rb
Overview
Represents a team’s league record (wins/losses)
Instance Attribute Summary collapse
-
#losses ⇒ Integer
Returns the number of losses.
-
#pct ⇒ String
Returns the winning percentage.
-
#ties ⇒ Integer
Returns the number of ties.
-
#wins ⇒ Integer
Returns the number of wins.
Instance Attribute Details
#losses ⇒ Integer
Returns the number of losses
22 |
# File 'lib/mlb/team_record.rb', line 22 attribute :losses, Shale::Type::Integer |
#pct ⇒ String
Returns the winning percentage
38 |
# File 'lib/mlb/team_record.rb', line 38 attribute :pct, Shale::Type::String |
#ties ⇒ Integer
Returns the number of ties
30 |
# File 'lib/mlb/team_record.rb', line 30 attribute :ties, Shale::Type::Integer |
#wins ⇒ Integer
Returns the number of wins
14 |
# File 'lib/mlb/team_record.rb', line 14 attribute :wins, Shale::Type::Integer |