Class: Edmunds::Style
Instance Attribute Summary
Attributes inherited from API
#api_key, #base, #base_url, #format, #image_base_url
Instance Method Summary collapse
- #find_by_id(style_id) ⇒ Object
- #find_styles_by_make_model_year(make, model, year) ⇒ Object
- #find_styles_by_model_year_id(model_year_id) ⇒ Object
Methods inherited from API
#call_api, #initialize, #set_key
Constructor Details
This class inherits a constructor from Edmunds::API
Instance Method Details
#find_by_id(style_id) ⇒ Object
4 5 6 7 8 |
# File 'lib/edmunds/style.rb', line 4 def find_by_id(style_id) @url = "/stylerepository/findbyid?id=#{style_id}&" call_api @json["styleHolder"] end |
#find_styles_by_make_model_year(make, model, year) ⇒ Object
10 11 12 13 14 |
# File 'lib/edmunds/style.rb', line 10 def find_styles_by_make_model_year(make, model, year) @url = "/stylerepository/findstylesbymakemodelyear?make=#{make}&model=#{model}&year=#{year}&" call_api @json["styleHolder"] end |
#find_styles_by_model_year_id(model_year_id) ⇒ Object
16 17 18 19 20 |
# File 'lib/edmunds/style.rb', line 16 def find_styles_by_model_year_id(model_year_id) @url = "/stylerepository/findstylesbymodelyearid?modelyearid=#{model_year_id}&" call_api @json["styleHolder"] end |