Class: Wowlog::LeechParser
- Inherits:
-
ColumnParser
- Object
- ColumnParser
- Wowlog::LeechParser
- 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
257 258 259 260 261 262 263 264 |
# File 'lib/wowlog.rb', line 257 def parse(cols, obj) cols, obj = super(cols, obj) obj['amount'] = int(cols[0]) obj['powerType'] = resolv_power_type(cols[1]) obj['extraAmount'] = int(cols[2]) cols.shift(3) return cols, obj end |