Created
July 20, 2010 03:18
-
-
Save jeffdeville/482437 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if top_sellers.class.inspect == "Array" | |
asins = top_sellers.collect {|item| item.get('asin') } | |
elsif !top_sellers.nil? | |
asins = [top_sellers.get('asin')] | |
end | |
asins = asins || [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you for the help xiaods!