Class: EdmundsCars::Models

Inherits:
Vehicles show all
Defined in:
lib/edmunds_cars/models.rb

Instance Method Summary collapse

Methods inherited from Vehicles

#initialize

Constructor Details

This class inherits a constructor from EdmundsCars::Vehicles

Instance Method Details

#by_make_model(make, model) ⇒ Object



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

def by_make_model(make, model)
  self.class.get("/vehicle/modelrepository/findmodelbymakemodelname", :query => {:make => make, :model=> model_name })
end

#by_make_model_year(make, model, model_year = Time.now.year) ⇒ Object



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

def by_make_model_year(make, model, model_year = Time.now.year)
  self.class.get("/vehicle/#{make}/#{model}/#{model_year}")
end