Class: EdmundsCars::TrueCostToOwn

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

Instance Method Summary collapse

Methods inherited from Vehicles

#initialize

Constructor Details

This class inherits a constructor from EdmundsCars::Vehicles

Instance Method Details

#makes_with_dataObject



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