Class: Wowlog::EnergizeParser

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

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



230
231
232
233
234
235
236
237
238
# File 'lib/wowlog.rb', line 230

def parse(cols, obj)
  cols, obj = super(cols, obj)
  cols.shift(8) # shift 8 columns because unknown parameters

  obj['amount'] = int(cols[0])
  obj['powerType'] = resolv_power_type(cols[1])
  cols.shift(2)
  return cols, obj
end