Sha256: 42a7d22728b3b92409f8e0f62da51cd239d346a07e8711bb4e729255a6561fae

Contents?: true

Size: 480 Bytes

Versions: 3

Compression:

Stored size: 480 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)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
epubinfo-0.3.6 lib/epubinfo.rb
epubinfo-0.3.5 lib/epubinfo.rb
epubinfo-0.3.4 lib/epubinfo.rb