Sha256: 5c83fac7963adb08a54ababd806ff40e8333e3c128365dadc838ccc13567c132

Contents?: true

Size: 342 Bytes

Versions: 9

Compression:

Stored size: 342 Bytes

Contents

module Edmunds
  module Vehicle
    module Safety

      def ratings(*args)
        if args.count == 1
          send_request "/styles/#{args[0]}/safety"
        else
          make = args[0]
          model = args[1]
          year = args[2]
          send_request "/#{make}/#{model}/#{year}/safety"
        end
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
edmunds_api-0.1.8 lib/edmunds/vehicle/safety.rb
edmunds_api-0.1.7 lib/edmunds/vehicle/safety.rb
edmunds_api-0.1.6 lib/edmunds/vehicle/safety.rb
edmunds_api-0.1.5 lib/edmunds/vehicle/safety.rb
edmunds_api-0.1.4 lib/edmunds/vehicle/safety.rb
edmunds_api-0.1.3 lib/edmunds/vehicle/safety.rb
edmunds_api-0.1.2 lib/edmunds/vehicle/safety.rb
edmunds_api-0.1.1 lib/edmunds/vehicle/safety.rb
edmunds_api-0.1.0 lib/edmunds/vehicle/safety.rb