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])


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

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

Instance Attribute Details

#contentString?

Returns the value of attribute content.

Returns:

  • (String, nil)


1147
1148
1149
# File 'sig/types.rbs', line 1147

def content
  @content
end

#metadataHash[String, json_value]?

Returns the value of attribute metadata.

Returns:

  • (Hash[String, json_value], nil)


1149
1150
1151
# File 'sig/types.rbs', line 1149

def 
  @metadata
end

#mime_typeString?

Returns the value of attribute mime_type.

Returns:

  • (String, nil)


1148
1149
1150
# File 'sig/types.rbs', line 1148

def mime_type
  @mime_type
end

#ocr_elementsArray[OcrElement]?

Returns the value of attribute ocr_elements.

Returns:



1151
1152
1153
# File 'sig/types.rbs', line 1151

def ocr_elements
  @ocr_elements
end

#tablesArray[OcrTable]?

Returns the value of attribute tables.

Returns:



1150
1151
1152
# File 'sig/types.rbs', line 1150

def tables
  @tables
end