class Nhtsa::SafetyRatings::Year
Public Class Methods
new(year)
click to toggle source
# File lib/nhtsa/safety_ratings/year.rb, line 4 def initialize(year) @year = year.to_i end
Public Instance Methods
name()
click to toggle source
# File lib/nhtsa/safety_ratings/year.rb, line 8 def name @year end
to_s()
click to toggle source
# File lib/nhtsa/safety_ratings/year.rb, line 12 def to_s @year.to_s end