def find_category(category_name, options = {})
      categories = self.categories
      if categories.is_a?(Array)
        categories.detect { |c| c['name'] == category_name }
      else
        raise "Could not retrieve categories: #{categories}"
      end
    end
def find_category(category_name, options = {})
      categories = self.categories
      if categories.is_a?(Array)
        categories.detect { |c| c['name'] == category_name }
      else
        raise "Could not retrieve categories: #{categories}"
      end
    end
Find category by name