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, json_value])
  • tables: (Array[OcrTable])
  • ocr_elements: (Array[OcrElement])


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

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

Instance Attribute Details

#contentString (readonly)

Returns the value of attribute content.

Returns:

  • (String)


1136
1137
1138
# File 'sig/types.rbs', line 1136

def content
  @content
end

#metadataHash[String, json_value] (readonly)

Returns the value of attribute metadata.

Returns:

  • (Hash[String, json_value])


1138
1139
1140
# File 'sig/types.rbs', line 1138

def 
  @metadata
end

#mime_typeString (readonly)

Returns the value of attribute mime_type.

Returns:

  • (String)


1137
1138
1139
# File 'sig/types.rbs', line 1137

def mime_type
  @mime_type
end

#ocr_elementsArray[OcrElement] (readonly)

Returns the value of attribute ocr_elements.

Returns:



1140
1141
1142
# File 'sig/types.rbs', line 1140

def ocr_elements
  @ocr_elements
end

#tablesArray[OcrTable] (readonly)

Returns the value of attribute tables.

Returns:



1139
1140
1141
# File 'sig/types.rbs', line 1139

def tables
  @tables
end