Class: Nhtsa::SafetyRatings::Years
- Inherits:
-
Object
- Object
- Nhtsa::SafetyRatings::Years
- Defined in:
- lib/nhtsa/safety_ratings/years.rb
Instance Method Summary collapse
-
#initialize ⇒ Years
constructor
A new instance of Years.
- #to_s ⇒ Object
- #url ⇒ Object
- #values ⇒ Object
- #years ⇒ Object
Constructor Details
Instance Method Details
#to_s ⇒ Object
20 21 22 |
# File 'lib/nhtsa/safety_ratings/years.rb', line 20 def to_s @years.map(&:to_s) end |
#url ⇒ Object
8 9 10 |
# File 'lib/nhtsa/safety_ratings/years.rb', line 8 def url BASE_URI + END_POINT + DEFAULT_PARAMS end |
#values ⇒ Object
16 17 18 |
# File 'lib/nhtsa/safety_ratings/years.rb', line 16 def values @years.map(&:name) end |
#years ⇒ Object
12 13 14 |
# File 'lib/nhtsa/safety_ratings/years.rb', line 12 def years @years end |