Module: EbookLibrary

Defined in:
lib/ebook_library/gatherer.rb,
lib/ebook_library.rb,
lib/ebook_library/ebook.rb,
lib/ebook_library/version.rb,
lib/ebook_library/factory/pdf.rb,
lib/ebook_library/factory/epub.rb,
lib/ebook_library/factory/mobi.rb,
lib/ebook_library/ebook_factory.rb

Overview

this could possibly use the ebook-meta tool

http://manual.calibre-ebook.com/cli/ebook-meta.html

reference:

http://wiki.mobileread.com/wiki/MOBI

Defined Under Namespace

Modules: Factory Classes: Ebook, EbookFactory, Gatherer, InvalidPath, UnsupportedFormatError

Constant Summary collapse

VERSION =
"0.3.0"

Class Method Summary collapse

Class Method Details

.default_pathObject



10
11
12
# File 'lib/ebook_library.rb', line 10

def self.default_path
  File.join ENV["HOME"], "Documents/ebooks"
end

.dump(type = :json) ⇒ Object

TODO allow different outputs



15
16
17
18
# File 'lib/ebook_library.rb', line 15

def self.dump(type=:json)
  require 'json' if type.to_sym == :json
  Gatherer.new.gather.to_json
end