There are examples helping you find how to use EPUB parser gem.
Aggregate Contents From the Web
Extract contents from EPUB files using EPUB CFI(identifier for EPUB)
Find elements and CFIs