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


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

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)


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

def content
  @content
end

#metadataHash[String, json_value]?

Returns the value of attribute metadata.

Returns:

  • (Hash[String, json_value], nil)


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

def 
  @metadata
end

#mime_typeString?

Returns the value of attribute mime_type.

Returns:

  • (String, nil)


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

def mime_type
  @mime_type
end

#ocr_elementsArray[OcrElement]?

Returns the value of attribute ocr_elements.

Returns:



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

def ocr_elements
  @ocr_elements
end

#tablesArray[OcrTable]?

Returns the value of attribute tables.

Returns:



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

def tables
  @tables
end