def categories(store_id)
      return [] if store_id.nil?

      response = api_get("Stores.egg", "Categories", store_id)
      categories = JSON.parse(response.body)
      categories = categories.collect do |category|
        Newegg::Category.new(category['Description'], category['CategoryType'], category['CategoryID'],
                             category['StoreID'], category['ShowSeeAllDeals'], category['NodeId'])
      end

      categories
    end
def categories(store_id)
      return [] if store_id.nil?

      response = api_get("Stores.egg", "Categories", store_id)
      categories = JSON.parse(response.body)
      categories = categories.collect do |category|
        Newegg::Category.new(category['Description'], category['CategoryType'], category['CategoryID'],
                             category['StoreID'], category['ShowSeeAllDeals'], category['NodeId'])
      end

      categories
    end
retrieve and populate list of categories for a given store_id

 @param [Integer] store_id of the store