lib/xiv_lodestone/lodestone_character_gear.rb
def parse_gear(gear_path)
      gear_path.each do |item|
        @items[type(item.at_css('h3.category_name').text).to_sym] = Gear.new(
          item.css('h2').text.delete!("\n\t"),
          item.at_css('div.pt3.pb3').text.split(/ /).last.to_i,
          item.at_css('h3').text,
        "http://na.finalfantasyxiv.com#{item.at_css('a')['href']}")
      end
    end
#### Private Methods ####
# Parses each piece of gear and stores it in @items hash

Private Methods
Parses each piece of gear and stores it in @items hash
Private Methods Parses each piece of gear and stores it in @items hash
def parse_gear(gear_path)
      gear_path.each do |item|
        @items[type(item.at_css('h3.category_name').text).to_sym] = Gear.new(
          item.css('h2').text.delete!("\n\t"),
          item.at_css('div.pt3.pb3').text.split(/ /).last.to_i,
          item.at_css('h3').text,
        "http://na.finalfantasyxiv.com#{item.at_css('a')['href']}")
      end
    end
def parse_gear ( gear_path ) gear_path . each do | item | @items [ type ( item . at_css ( 'h3.category_name' ) . text ) . to_sym ] = Gear . new ( item . css ( 'h2' ) . text . delete! ( "\n\t" ) , item . at_css ( 'div.pt3.pb3' ) . text . split ( / / ) . last . to_i , item . at_css ( 'h3' ) . text , "http://na.finalfantasyxiv.com#{item.at_css('a')['href']}" ) end end
Private Methods 
Parses each piece of gear and stores it in @items hash
Private Methods Parses each piece of gear and stores it in @items hash
gear_path