Commit graph

4 commits

Author SHA1 Message Date
3633752551 Create CharacterParser
The CharacterParser is responsible for taking the response from a wiki object and turning it into something usable. Most of the logic from the original GranblueWiki object ended up here.

To use, you can instantiate a CharacterParser with a Granblue ID. It will create the wiki object for you using the provided character and fetch data when you call `fetch` on the CharacterParser.

You can also fetch data for all characters with the static method `fetch_all`

Currently a specific subset of fields are persisted, but in the future more can and probably should be saved
2023-07-17 04:04:28 -07:00
b3caa1f1d3 Update GranblueWiki
This is an adaptation and cleanup of the original GranblueWiki class. We extracted the object-related code into a parser, and this class is now only responsible for requests and fetching common property maps.
2023-07-17 04:02:23 -07:00
c1716c1e4f Run RuboCop on everything
yolo
2022-12-21 00:22:47 -08:00
c78af47582 Add validation error serializers 2020-09-25 10:51:08 -07:00