Module: Edmunds::Media::Photos
- Defined in:
- lib/edmunds/media/photos.rb
Instance Method Summary collapse
- #by_make_model(make, model, options = {}) ⇒ Object
- #by_style_id(style_id, options = {}) ⇒ Object
- #by_tag(tag, options = {}) ⇒ Object
- #by_year_make_model(year, make, model, options = {}) ⇒ Object
Instance Method Details
#by_make_model(make, model, options = {}) ⇒ Object
18 19 20 |
# File 'lib/edmunds/media/photos.rb', line 18 def by_make_model(make, model, ={}) send_request "/#{make}/#{model}/photos", end |
#by_style_id(style_id, options = {}) ⇒ Object
14 15 16 |
# File 'lib/edmunds/media/photos.rb', line 14 def by_style_id(style_id, ={}) send_request "/styles/#{style_id}/photos", end |
#by_tag(tag, options = {}) ⇒ Object
9 10 11 12 |
# File 'lib/edmunds/media/photos.rb', line 9 def by_tag(tag, ={}) = {tag: tag}.merge() send_request '/photoset', end |
#by_year_make_model(year, make, model, options = {}) ⇒ Object
5 6 7 |
# File 'lib/edmunds/media/photos.rb', line 5 def by_year_make_model(year, make, model, ={}) send_request "/#{make}/#{model}/#{year}/photos", end |