Class: MLB::Division
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::Division
- Includes:
- Comparable, ComparableByAttribute
- Defined in:
- lib/mlb/division.rb
Overview
Represents a division (e.g., AL East, NL West)
Instance Method Summary collapse
-
#active? ⇒ Boolean
Checks if the division is active.
-
#comparable_attribute ⇒ Symbol
private
Returns the attribute used for sorting.
-
#wildcard? ⇒ Boolean
Checks if the division has a wildcard.
Methods included from ComparableByAttribute
Instance Method Details
#active? ⇒ Boolean
Checks if the division is active
38 |
# File 'lib/mlb/division.rb', line 38 def active? = active |
#comparable_attribute ⇒ Symbol
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the attribute used for sorting
18 |
# File 'lib/mlb/division.rb', line 18 def comparable_attribute = :sort_order |
#wildcard? ⇒ Boolean
Checks if the division has a wildcard
46 |
# File 'lib/mlb/division.rb', line 46 def wildcard? = has_wildcard |