lib/xiv_lodestone/lodestone_character_attribute.rb
#### Private Methods ####
# Parsers attributes from a document into @attribute hash

Private Methods
Parsers attributes from a document into @attribute hash
Private Methods Parsers attributes from a document into @attribute hash
def parse_attributes(attribute_path)
      attribute_path.each_with_index do |li, index|
        if index < 6
          @attributes[@@attribute_hash[index].to_sym] = li.text.to_i
        else
          ele = li.text.split(/(?<=\D)(?=\d)/)
          @attributes[Helper.replace_downcase(ele[0]).to_sym] = ele[1].to_i
        end
      end
    end
def parse_attributes ( attribute_path ) attribute_path . each_with_index do | li , index | if index < 6 @attributes [ @@attribute_hash [ index ] . to_sym ] = li . text . to_i else ele = li . text . split ( / (?<= \D )(?= \d ) / ) @attributes [ Helper . replace_downcase ( ele [ 0 ] ) . to_sym ] = ele [ 1 ] . to_i end end end
Private Methods 
Parsers attributes from a document into @attribute hash
Private Methods Parsers attributes from a document into @attribute hash
# For some weird reason the first 6 elements don't use span tags like the rest.

attribute_path