phoet / asin

:books: :package: Amazon Simple INterface - Support for ItemLookup, SimilarityLookup, Search, BrowseNode and Cart Operations
http://asin.herokuapp.com/
167 stars 59 forks source link

Allow multiple ResponseGroups for a single request to be specified as an Array #9

Closed bprotas closed 13 years ago

bprotas commented 13 years ago

It seemed natural to me to specify multiple ResponseGroups like:

lookup "1430218150", :ResponseGroup => [:Small, :AlternateVersions]

This small patch checks if ResponseGroup is an array, and if it is, joins it and sends on to Amazon. Test case included.

bprotas commented 13 years ago

Yikes...should have done this as a feature branch..fixing