Class: Wowlog::EnchantParser

Inherits:
ColumnParser show all
Defined in:
lib/wowlog.rb

Overview


Special Event Parser Set


Constant Summary

Constants inherited from ColumnParser

ColumnParser::OBJECT_SPECIAL_MASK, ColumnParser::PT_MAP, ColumnParser::SCHOOL_FLAG_MAP, ColumnParser::UNIT_FLAG_MAP, ColumnParser::UNIT_SPECIAL_FLAG_MAP

Instance Method Summary collapse

Methods inherited from ColumnParser

#initialize, #int, #parse_school_flag, #parse_unit_flag, #resolv_power_type

Constructor Details

This class inherits a constructor from Wowlog::ColumnParser

Instance Method Details

#parse(cols, obj) ⇒ Object



334
335
336
337
338
339
340
341
# File 'lib/wowlog.rb', line 334

def parse(cols, obj)
  cols, obj = super(cols, obj)
  obj['spellName'] = cols[0]
  obj['itemID'] = cols[1]
  obj['itemName'] = cols[2]
  cols.shift(3)
  return cols, obj
end