Class: Amazon::AWS::CustomerContentSearch

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

Overview

Retrieve basic Amazon customer data.

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(customer_id) ⇒ CustomerContentSearch

Retrieve customer information, using an e-mail address or name.

If customer_id contains an ‘@’ sign, it is assumed to be an e-mail address. Otherwise, it is assumed to be the customer’s name.

Example:

ccs = CustomerContentSearch.new( '[email protected]' )

In the above example, we look up customer information about [email protected]. The CustomerInfo response group will return, amongst other things, a customer_id property, which can then be plugged into CustomerContentLookup to retrieve more detailed customer information.



1099
1100
1101
1102
# File 'lib/ruby-paa/aws.rb', line 1099

def initialize(customer_id)
	id = customer_id =~ /@/ ? 'Email' : 'Name'
	super( { id => customer_id } )
end