Sha256: eec8204d91c5ef0c876a0423eddd36193f1968eb263a5e0223f324a026690fb6
Contents?: true
Size: 498 Bytes
Versions: 2
Compression:
Stored size: 498 Bytes
Contents
require 'zip/zip' require 'nokogiri' require 'epubinfo/parser' require 'epubinfo/models/book' require 'epubinfo/models/person' require 'epubinfo/models/date' require 'epubinfo/models/identifier' require 'epubinfo/utils' module EPUBInfo # Parses an epub file and returns a Book instance. # @return [EPUBInfo::Models::Book] a model representation of the epub file def self.get(path) parser = EPUBInfo::Parser.parse(path) EPUBInfo::Models::Book.new(parser.metadata_document) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
epubinfo-0.2.4 | lib/epubinfo.rb |
epubinfo-0.2.3 | lib/epubinfo.rb |