Sha256: 7ed2661e4b052be0b9451445df0b894506d7b603e8782301b016141dacf218cf

Contents?: true

Size: 526 Bytes

Versions: 4

Compression:

Stored size: 526 Bytes

Contents

require 'zip/zip'
require 'nokogiri'
require 'cgi'

require 'epubinfo/parser'
require 'epubinfo/models/book'
require 'epubinfo/models/cover'
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

4 entries across 4 versions & 1 rubygems

Version Path
epubinfo-0.4.3 lib/epubinfo.rb
epubinfo-0.4.2 lib/epubinfo.rb
epubinfo-0.4.1 lib/epubinfo.rb
epubinfo-0.4.0 lib/epubinfo.rb