Class: EdmundsCars::Styles

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

Instance Method Summary collapse

Methods inherited from Vehicles

#initialize

Constructor Details

This class inherits a constructor from EdmundsCars::Vehicles

Instance Method Details

#by_id(id) ⇒ Object



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

def by_id(id)
  self.class.get("/findbyid", :query => {:id => id})
end

#by_make_model_year(make, model_name, model_year) ⇒ Object



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

def by_make_model_year(make, model_name, model_year)
  self.class.get("/findstylesbymakemodelyear", :query => {:make=>make, :model=> model_name, :year => model_year})
end

#by_model_year_id(id) ⇒ Object



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

def by_model_year_id(id)
  self.class.get("/findstylebymakemodelyearid", :query => {:modelyearid => id})
end