Class: EdmundsCars::Depreciation

Inherits:
Vehicles
  • Object
show all
Defined in:
lib/edmunds_cars/depreciation.rb

Instance Method Summary collapse

Methods inherited from Vehicles

#initialize

Constructor Details

This class inherits a constructor from EdmundsCars::Vehicles

Instance Method Details

#new_rates_by_styleid_and_zip(style_id, zip) ⇒ Object

Get the depreciation value in dollars over the next 5 years for a new vehicle by Style ID and zipcode



12
13
14
# File 'lib/edmunds_cars/depreciation.rb', line 12

def new_rates_by_styleid_and_zip(style_id, zip)
  self.class.get("/newratesbystyleidandzip/#{style_id}/#{zip}")
end

#used_rates_by_styleid_and_zip(style_id, zip) ⇒ Object

Get the depreciation value in dollars over the next 5 years for a used vehicle by Style ID and zipcode



7
8
9
# File 'lib/edmunds_cars/depreciation.rb', line 7

def used_rates_by_styleid_and_zip(style_id, zip)
  self.class.get("/usedratesbystyleidandzip/#{style_id}/#{zip}")
end