Class: Amazon::AWS::ResponseGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/amazon/aws.rb

Overview

Response groups determine which data pertaining to the item(s) being sought is returned. They can strongly influence the amount of data returned, so you should always use the smallest response group(s) containing the data of interest to you, to avoid masses of unnecessary data being returned.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*rg) ⇒ ResponseGroup

Define a set of one or more response groups to be applied to items retrieved by an AWS operation.

If no response groups are given in rg when instantiating an object, Small will be used by default.

Example:

rg = ResponseGroup.new( 'Medium', 'Offers', 'Reviews' )


1301
1302
1303
1304
1305
# File 'lib/amazon/aws.rb', line 1301

def initialize(*rg)
  rg << 'Small' if rg.empty?
  @list = rg
  @params = { 'ResponseGroup' => @list.join( ',' ) }
end

Instance Attribute Details

#listObject (readonly)

Returns the value of attribute list.



1289
1290
1291
# File 'lib/amazon/aws.rb', line 1289

def list
  @list
end

#paramsObject (readonly)

Returns the value of attribute params.



1289
1290
1291
# File 'lib/amazon/aws.rb', line 1289

def params
  @params
end