XIVStats / lodestone

A module for interfacing with the Final Fantasy XIV Lodestone, and returning entity (character, server etc.) information.
MIT License
0 stars 0 forks source link

(parsing): refactor implementation of recurring attributes #50

Open ReidWeb opened 2 years ago

ReidWeb commented 2 years ago

Description

For lists of attributes scrapable from DOM e.g. list of class levels, list of gear, list of FC members, list of means to acquire an item - add configurable rules in dom config to map it down in a generic way and reduce duplicitous code.

Use Case

Not user exposed

Minimises code (DRY)

Proposed Solution

Make recurring attribute handlers into functions in dom config.

Other information

No response

Acknowledge