Class: Amazon::AWS::ResponseGroup
- Inherits:
-
Object
- Object
- Amazon::AWS::ResponseGroup
- 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
-
#list ⇒ Object
readonly
Returns the value of attribute list.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(*rg) ⇒ ResponseGroup
constructor
Define a set of one or more response groups to be applied to items retrieved by an AWS operation.
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
#list ⇒ Object (readonly)
Returns the value of attribute list.
1289 1290 1291 |
# File 'lib/amazon/aws.rb', line 1289 def list @list end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
1289 1290 1291 |
# File 'lib/amazon/aws.rb', line 1289 def params @params end |