def extract_rank(div)
      name = div.children[0].text
      description = div.children[2].text
      color = extract_color(div.children[0].attribute('style').to_s)

      {name: name, description: description, color: color}
    end
def extract_rank(div)
      name = div.children[0].text
      description = div.children[2].text
      color = extract_color(div.children[0].attribute('style').to_s)

      {name: name, description: description, color: color}
    end
Extracts a rank hash from a rank div.
 Only for use by #scrape_ranks.

 @param rank_div [Nokogiri::XML::Element] a div containing the rank info.
 @return [Hash] a representation of a rank as outlined in #scrape_ranks.