Module: EPUBInfo

Defined in:
lib/epubinfo.rb,
lib/epubinfo/utils.rb,
lib/epubinfo/parser.rb,
lib/epubinfo/models/book.rb,
lib/epubinfo/models/date.rb,
lib/epubinfo/models/cover.rb,
lib/epubinfo/models/person.rb,
lib/epubinfo/models/identifier.rb

Defined Under Namespace

Modules: Models, Utils Classes: NotAnEPUBFileError, Parser

Class Method Summary collapse

Class Method Details

.get(path) ⇒ EPUBInfo::Models::Book

Parses an epub file and returns a Book instance.

Returns:



16
17
18
19
# File 'lib/epubinfo.rb', line 16

def self.get(path)
  parser = EPUBInfo::Parser.parse(path)
  EPUBInfo::Models::Book.new(parser)
end