Sha256: da20098839a0cf60f8086117a830b3f9490def06c48f2be739dd3b7edc56b7c3

Contents?: true

Size: 565 Bytes

Versions: 7

Compression:

Stored size: 565 Bytes

Contents

module Edmunds
  module Media
    module Photos

      def by_year_make_model(year, make, model, options={})
        send_request "/#{make}/#{model}/#{year}/photos", options
      end

      def by_tag(tag, options={})
        options = {tag: tag}.merge(options)
        send_request '/photoset', options
      end

      def by_style_id(style_id, options={})
        send_request "/styles/#{style_id}/photos", options
      end

      def by_make_model(make, model, options={})
        send_request "/#{make}/#{model}/photos", options
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
edmunds_api-0.1.8 lib/edmunds/media/photos.rb
edmunds_api-0.1.7 lib/edmunds/media/photos.rb
edmunds_api-0.1.6 lib/edmunds/media/photos.rb
edmunds_api-0.1.5 lib/edmunds/media/photos.rb
edmunds_api-0.1.4 lib/edmunds/media/photos.rb
edmunds_api-0.1.3 lib/edmunds/media/photos.rb
edmunds_api-0.1.2 lib/edmunds/media/photos.rb