Class: Xberg::OcrExtractionResult

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOcrExtractionResult

Returns a new instance of OcrExtractionResult.

Parameters:

  • content: (String)
  • mime_type: (String)
  • metadata: (Hash[String, String])
  • tables: (Array[OcrTable])
  • ocr_elements: (Array[OcrElement])


1724
# File 'sig/types.rbs', line 1724

def initialize: (?content: String, ?mime_type: String, ?metadata: Hash[String, String], ?tables: Array[OcrTable], ?ocr_elements: Array[OcrElement]) -> void

Instance Attribute Details

#contentString (readonly)

Returns the value of attribute content.

Returns:

  • (String)


1718
1719
1720
# File 'sig/types.rbs', line 1718

def content
  @content
end

#metadataHash[String, String] (readonly)

Returns the value of attribute metadata.

Returns:

  • (Hash[String, String])


1720
1721
1722
# File 'sig/types.rbs', line 1720

def 
  @metadata
end

#mime_typeString (readonly)

Returns the value of attribute mime_type.

Returns:

  • (String)


1719
1720
1721
# File 'sig/types.rbs', line 1719

def mime_type
  @mime_type
end

#ocr_elementsArray[OcrElement]? (readonly)

Returns the value of attribute ocr_elements.

Returns:



1722
1723
1724
# File 'sig/types.rbs', line 1722

def ocr_elements
  @ocr_elements
end

#tablesArray[OcrTable] (readonly)

Returns the value of attribute tables.

Returns:



1721
1722
1723
# File 'sig/types.rbs', line 1721

def tables
  @tables
end