Class: EdmundsCars::TrueCostToOwn
Instance Method Summary
collapse
Methods inherited from Vehicles
#initialize
Instance Method Details
#makes_with_data ⇒ Object
14
15
16
|
# File 'lib/edmunds_cars/true_cost_to_own.rb', line 14
def makes_with_data
self.class.get("/getmakeswithtcodata")
end
|
#models_with_data(make_id) ⇒ Object
18
19
20
|
# File 'lib/edmunds_cars/true_cost_to_own.rb', line 18
def models_with_data(make_id)
self.class.get("/getmodelswithtcodata", :query => {:makeid => make_id})
end
|
#new_by_style_id_and_zip(style_id, zip) ⇒ Object
6
7
8
|
# File 'lib/edmunds_cars/true_cost_to_own.rb', line 6
def new_by_style_id_and_zip(style_id, zip)
self.class.get("/newtruecosttoownbystyleidandzip/#{style_id}/#{zip}")
end
|
#styles_with_data_by_submodel(make, model, year, submodel) ⇒ Object
22
23
24
25
26
27
28
29
|
# File 'lib/edmunds_cars/true_cost_to_own.rb', line 22
def styles_with_data_by_submodel(make, model, year, submodel)
self.class.get("/getstyleswithtcodatabysubmodel", {
:make => make,
:model => model,
:year => year,
:submodel => submodel
})
end
|
#used_by_style_id_and_zip(style_id, zip) ⇒ Object
10
11
12
|
# File 'lib/edmunds_cars/true_cost_to_own.rb', line 10
def used_by_style_id_and_zip(style_id, zip)
self.class.get("/usedtruecosttoownbystyleidandzip/#{style_id}/#{zip}")
end
|