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


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

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)


1180
1181
1182
# File 'sig/types.rbs', line 1180

def content
  @content
end

#metadataHash[String, json_value]?

Returns the value of attribute metadata.

Returns:

  • (Hash[String, json_value], nil)


1182
1183
1184
# File 'sig/types.rbs', line 1182

def 
  @metadata
end

#mime_typeString?

Returns the value of attribute mime_type.

Returns:

  • (String, nil)


1181
1182
1183
# File 'sig/types.rbs', line 1181

def mime_type
  @mime_type
end

#ocr_elementsArray[OcrElement]?

Returns the value of attribute ocr_elements.

Returns:



1184
1185
1186
# File 'sig/types.rbs', line 1184

def ocr_elements
  @ocr_elements
end

#tablesArray[OcrTable]?

Returns the value of attribute tables.

Returns:



1183
1184
1185
# File 'sig/types.rbs', line 1183

def tables
  @tables
end