Class: ChromeData::ModelYear

Inherits:
Object
  • Object
show all
Defined in:
lib/chrome_data/model_year.rb

Class Method Summary collapse

Class Method Details

.allObject

Chrome Data returns years in the opposite order, but that’s not typically how selects are built, so they’re reversed here, since that’s the only purpose that I can see for this method.



11
12
13
# File 'lib/chrome_data/model_year.rb', line 11

def self.all
  (Time.now.year + 1).downto(1981).to_a
end