Class: Xberg::HeuristicsConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHeuristicsConfig

Returns a new instance of HeuristicsConfig.

Parameters:

  • enable_pdf_text_heuristics: (Boolean)
  • text_layer_threshold: (Float)
  • file_size_threshold_bytes: (Integer)
  • page_count_threshold: (Integer)
  • target_pages_per_chunk: (Integer)
  • max_pages_per_chunk: (Integer)
  • disk_processing_threshold_bytes: (Integer)
  • min_chars_per_page: (Integer)
  • max_xlsx_sheet_count: (Integer)
  • max_xlsx_workbook_cells: (Integer)
  • max_pptx_embedded_count: (Integer)


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

def initialize: (?enable_pdf_text_heuristics: bool, ?text_layer_threshold: Float, ?file_size_threshold_bytes: Integer, ?page_count_threshold: Integer, ?target_pages_per_chunk: Integer, ?max_pages_per_chunk: Integer, ?disk_processing_threshold_bytes: Integer, ?min_chars_per_page: Integer, ?max_xlsx_sheet_count: Integer, ?max_xlsx_workbook_cells: Integer, ?max_pptx_embedded_count: Integer) -> void

Instance Attribute Details

#disk_processing_threshold_bytesInteger (readonly)

Returns the value of attribute disk_processing_threshold_bytes.

Returns:

  • (Integer)


1189
1190
1191
# File 'sig/types.rbs', line 1189

def disk_processing_threshold_bytes
  @disk_processing_threshold_bytes
end

#enable_pdf_text_heuristicsBoolean (readonly)

Returns the value of attribute enable_pdf_text_heuristics.

Returns:

  • (Boolean)


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

def enable_pdf_text_heuristics
  @enable_pdf_text_heuristics
end

#file_size_threshold_bytesInteger (readonly)

Returns the value of attribute file_size_threshold_bytes.

Returns:

  • (Integer)


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

def file_size_threshold_bytes
  @file_size_threshold_bytes
end

#max_pages_per_chunkInteger (readonly)

Returns the value of attribute max_pages_per_chunk.

Returns:

  • (Integer)


1188
1189
1190
# File 'sig/types.rbs', line 1188

def max_pages_per_chunk
  @max_pages_per_chunk
end

#max_pptx_embedded_countInteger (readonly)

Returns the value of attribute max_pptx_embedded_count.

Returns:

  • (Integer)


1193
1194
1195
# File 'sig/types.rbs', line 1193

def max_pptx_embedded_count
  @max_pptx_embedded_count
end

#max_xlsx_sheet_countInteger (readonly)

Returns the value of attribute max_xlsx_sheet_count.

Returns:

  • (Integer)


1191
1192
1193
# File 'sig/types.rbs', line 1191

def max_xlsx_sheet_count
  @max_xlsx_sheet_count
end

#max_xlsx_workbook_cellsInteger (readonly)

Returns the value of attribute max_xlsx_workbook_cells.

Returns:

  • (Integer)


1192
1193
1194
# File 'sig/types.rbs', line 1192

def max_xlsx_workbook_cells
  @max_xlsx_workbook_cells
end

#min_chars_per_pageInteger (readonly)

Returns the value of attribute min_chars_per_page.

Returns:

  • (Integer)


1190
1191
1192
# File 'sig/types.rbs', line 1190

def min_chars_per_page
  @min_chars_per_page
end

#page_count_thresholdInteger (readonly)

Returns the value of attribute page_count_threshold.

Returns:

  • (Integer)


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

def page_count_threshold
  @page_count_threshold
end

#target_pages_per_chunkInteger (readonly)

Returns the value of attribute target_pages_per_chunk.

Returns:

  • (Integer)


1187
1188
1189
# File 'sig/types.rbs', line 1187

def target_pages_per_chunk
  @target_pages_per_chunk
end

#text_layer_thresholdFloat (readonly)

Returns the value of attribute text_layer_threshold.

Returns:

  • (Float)


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

def text_layer_threshold
  @text_layer_threshold
end

Instance Method Details

#validatevoid

This method returns an undefined value.



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

def validate: () -> void