Class: Thumblemonks::Indico::ExtractedDocument

Inherits:
Object
  • Object
show all
Defined in:
lib/thumblemonks/indico/extracted_document.rb

Defined Under Namespace

Classes: ExtractionError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ ExtractedDocument

Returns a new instance of ExtractedDocument.



8
9
10
# File 'lib/thumblemonks/indico/extracted_document.rb', line 8

def initialize(content)
  @content = content
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



6
7
8
# File 'lib/thumblemonks/indico/extracted_document.rb', line 6

def content
  @content
end

Instance Method Details

#extract_textObject



12
13
14
# File 'lib/thumblemonks/indico/extracted_document.rb', line 12

def extract_text
  @extracted_text ||= extract_text!
end

#extract_text!Object

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/thumblemonks/indico/extracted_document.rb', line 16

def extract_text!
  raise NotImplementedError
end