Class: MLB::HighLowResult
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::HighLowResult
- Defined in:
- lib/mlb/high_low.rb
Overview
Represents a high/low stat result
Instance Attribute Summary collapse
-
#date ⇒ String
Returns the date.
-
#is_home ⇒ Boolean
Returns whether the team was at home.
-
#opponent ⇒ Team
Returns the opponent team.
-
#rank ⇒ Integer
Returns the rank.
-
#season ⇒ String
Returns the season.
-
#team ⇒ Team
Returns the team.
Instance Method Summary collapse
-
#home? ⇒ Boolean
Returns whether the team was at home.
Instance Attribute Details
#date ⇒ String
Returns the date
40 |
# File 'lib/mlb/high_low.rb', line 40 attribute :date, Shale::Type::String |
#is_home ⇒ Boolean
Returns whether the team was at home
48 |
# File 'lib/mlb/high_low.rb', line 48 attribute :is_home, Shale::Type::Boolean |
#opponent ⇒ Team
Returns the opponent team
32 |
# File 'lib/mlb/high_low.rb', line 32 attribute :opponent, Team |
#rank ⇒ Integer
Returns the rank
56 |
# File 'lib/mlb/high_low.rb', line 56 attribute :rank, Shale::Type::Integer |
#season ⇒ String
Returns the season
16 |
# File 'lib/mlb/high_low.rb', line 16 attribute :season, Shale::Type::String |
Instance Method Details
#home? ⇒ Boolean
Returns whether the team was at home
64 65 66 |
# File 'lib/mlb/high_low.rb', line 64 def home? is_home end |