Class: AmazonMwsProducts::GetMatchingProducts

Inherits:
Object
  • Object
show all
Defined in:
lib/amazon_mws_products/get_matching_products.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ GetMatchingProducts

Returns a new instance of GetMatchingProducts.



5
6
7
8
# File 'lib/amazon_mws_products/get_matching_products.rb', line 5

def initialize(options)
  @account = options.fetch(:account)
  @asins   = options.fetch(:asins)
end

Instance Attribute Details

#accountObject (readonly)

Returns the value of attribute account.



3
4
5
# File 'lib/amazon_mws_products/get_matching_products.rb', line 3

def 
  @account
end

#asinsObject (readonly)

Returns the value of attribute asins.



3
4
5
# File 'lib/amazon_mws_products/get_matching_products.rb', line 3

def asins
  @asins
end

Instance Method Details

#executeObject



10
11
12
# File 'lib/amazon_mws_products/get_matching_products.rb', line 10

def execute
  Client.new(, 'GetMatchingProduct').get(asin_params)
end