Sha256: 7cc7fe2e0d535f1aa994f11e12baf5c21018cacf8305335a999afd74145bb167

Contents?: true

Size: 304 Bytes

Versions: 18

Compression:

Stored size: 304 Bytes

Contents

module EbooksRenamer
  class MobiParser
    class << self
      def parse(filename)
        meta = Mobi.metadata(File.open(filename))
        OpenStruct.new title:     meta.title,
                       author:    meta.author,
                       publisher: meta.publisher
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ebooks_renamer-0.2.6 lib/ebooks_renamer/mobi_parser.rb
ebooks_renamer-0.2.5 lib/ebooks_renamer/mobi_parser.rb
ebooks_renamer-0.2.4 lib/ebooks_renamer/mobi_parser.rb
ebooks_renamer-0.2.3 lib/ebooks_renamer/mobi_parser.rb
ebooks_renamer-0.2.2 lib/ebooks_renamer/mobi_parser.rb
ebooks_renamer-0.2.1 lib/ebooks_renamer/mobi_parser.rb
ebooks_renamer-0.2.0 lib/ebooks_renamer/mobi_parser.rb
ebooks_renamer-0.1.5 lib/ebooks_renamer/mobi_parser.rb
ebooks_renamer-0.1.4 lib/ebooks_renamer/mobi_parser.rb
ebooks_renamer-0.1.3 lib/ebooks_renamer/mobi_parser.rb
ebooks_renamer-0.1.2 lib/ebooks_renamer/mobi_parser.rb
ebooks_renamer-0.1.1 lib/ebooks_renamer/mobi_parser.rb
ebooks_renamer-0.1.0 lib/ebooks_renamer/mobi_parser.rb
ebooks_renamer-0.0.5 lib/ebooks_renamer/mobi_parser.rb
ebooks_renamer-0.0.4 lib/ebooks_renamer/mobi_parser.rb
ebooks_renamer-0.0.3 lib/ebooks_renamer/mobi_parser.rb
ebooks_renamer-0.0.2 lib/ebooks_renamer/mobi_parser.rb
ebooks_renamer-0.0.1 lib/ebooks_renamer/mobi_parser.rb