class Nhtsa::Complaints::Years
Public Instance Methods
url()
click to toggle source
# File lib/nhtsa/complaints/years.rb, line 4 def url "#{BASE_URI}#{END_POINT}#{DEFAULT_PARAMS}" end
years()
click to toggle source
# File lib/nhtsa/complaints/years.rb, line 8 def years JSON.parse(open(url).read)["Results"].collect{|year| year["ModelYear"]} end