Sha256: cf641d1998c08b8b64293f49172e60efbce8e2d91641e0031e220d446daf1613

Contents?: true

Size: 518 Bytes

Versions: 4

Compression:

Stored size: 518 Bytes

Contents

#!/bin/env ruby
# encoding: utf-8

require_relative 'base'

module Nlg
  module Extractors

    class BookExtractor < Base
      attr_reader :book

      def initialize(id=nil)
        super(id)
        extract_book unless id.nil? or @page.nil?
      end

      def load_and_extract_book(id=nil)
        load_page(id)
        extract_book unless id.nil? or @page.nil?
      end

      def extract_book(nlg_id=@nlg_id, book_page=@page)
        puts "should extract book #{nlg_id} from nlg"
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bookshark-1.0.7 lib/bookshark/extractors/nlg/book_extractor.rb
bookshark-1.0.6 lib/bookshark/extractors/nlg/book_extractor.rb
bookshark-1.0.4 lib/bookshark/extractors/nlg/book_extractor.rb
bookshark-1.0.3 lib/bookshark/extractors/nlg/book_extractor.rb