Class: Amazon::AWS::VehicleSearch

Inherits:
Operation
  • Object
show all
Defined in:
lib/ruby-paa/aws.rb

Overview

Search for vehicles.

Constant Summary

Constants inherited from Operation

Operation::OPERATIONS

Instance Attribute Summary

Attributes inherited from Operation

#kind, #params, #response_group

Instance Method Summary collapse

Methods inherited from Operation

#batch, #query_parameters, #response_group_orig=

Constructor Details

#initialize(parameters = {}) ⇒ VehicleSearch

Search for vehicles, based on one or more of the following parameters: Year, MakeId, ModelId and TrimId.

This method is best used iteratively. For example, first search on year with a response group of VehicleMakes to return all makes for that year.

Next, search on year and make with a response group of VehicleModels to find all models for that year and make.

Then, search on year, make and model with a response group of VehicleTrims to find all trim packages for that year, make and model.

Finally, if required, search on year, make, model and trim package with a response group of VehicleOptions to find all vehicle options for that year, make, model and trim package.

Example:

vs = VehicleSearch.new( { 'Year' => 2008,

‘MakeId’ => 20, ‘ModelId’ => 6039, ‘TrimId’ => 20 } )

In this example, we search for 2008 Audi R8 vehicles with a Base trim package. Used with the VehicleOptions response group, a list of vehicle options would be returned.



1346
1347
1348
# File 'lib/ruby-paa/aws.rb', line 1346

def initialize(parameters={})
 super
end