Class: MLB::Season

Inherits:
Shale::Mapper
  • Object
show all
Includes:
Comparable, ComparableByAttribute
Defined in:
lib/mlb/season.rb

Overview

Represents a season

Instance Method Summary collapse

Methods included from ComparableByAttribute

#<=>

Instance Method Details

#comparable_attributeSymbol

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

Returns:

  • (Symbol)

    the attribute used for comparison



18
# File 'lib/mlb/season.rb', line 18

def comparable_attribute = :id