Class: EdmundsCars::Maintenance

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

Instance Method Summary collapse

Methods inherited from Vehicles

#initialize

Constructor Details

This class inherits a constructor from EdmundsCars::Vehicles

Instance Method Details

#labor_rates_by_zipObject



18
19
20
# File 'lib/edmunds_cars/maintenance.rb', line 18

def labor_rates_by_zip
  self.class.get("/ziplaborrate/#{zipcode}")
end

#recall_by_id(id) ⇒ Object



22
23
24
# File 'lib/edmunds_cars/maintenance.rb', line 22

def recall_by_id(id)
  self.class.get("/recall/#{id}")
end

#recall_by_model_year_id(model_year_id) ⇒ Object



26
27
28
# File 'lib/edmunds_cars/maintenance.rb', line 26

def recall_by_model_year_id(model_year_id)
  self.class.get("/recallrepository", :query => {:modelyearid => model_year_id})
end

#service_bulletin_by_id(id) ⇒ Object



10
11
12
# File 'lib/edmunds_cars/maintenance.rb', line 10

def service_bulletin_by_id(id)
  self.class.get("/servicebulletin/#{id}")
end

#service_bulletins_by_model_year_id(id) ⇒ Object



6
7
8
# File 'lib/edmunds_cars/maintenance.rb', line 6

def service_bulletins_by_model_year_id(id)
  self.class.get("/servicebulletinrepository/findbymodelyearid", :query => {:modelyearid => id})
end

#style_notes_by_id(id) ⇒ Object



14
15
16
# File 'lib/edmunds_cars/maintenance.rb', line 14

def style_notes_by_id(id)
  self.class.get("/stylenotes/#{id}")
end