Class: Xberg::HeuristicsConfig

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

Instance Attribute Summary collapse

Class Method 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)


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

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?

Returns the value of attribute disk_processing_threshold_bytes.

Returns:

  • (Integer, nil)


2029
2030
2031
# File 'sig/types.rbs', line 2029

def disk_processing_threshold_bytes
  @disk_processing_threshold_bytes
end

#enable_pdf_text_heuristicsBoolean?

Returns the value of attribute enable_pdf_text_heuristics.

Returns:

  • (Boolean, nil)


2023
2024
2025
# File 'sig/types.rbs', line 2023

def enable_pdf_text_heuristics
  @enable_pdf_text_heuristics
end

#file_size_threshold_bytesInteger?

Returns the value of attribute file_size_threshold_bytes.

Returns:

  • (Integer, nil)


2025
2026
2027
# File 'sig/types.rbs', line 2025

def file_size_threshold_bytes
  @file_size_threshold_bytes
end

#max_pages_per_chunkInteger?

Returns the value of attribute max_pages_per_chunk.

Returns:

  • (Integer, nil)


2028
2029
2030
# File 'sig/types.rbs', line 2028

def max_pages_per_chunk
  @max_pages_per_chunk
end

#max_pptx_embedded_countInteger?

Returns the value of attribute max_pptx_embedded_count.

Returns:

  • (Integer, nil)


2033
2034
2035
# File 'sig/types.rbs', line 2033

def max_pptx_embedded_count
  @max_pptx_embedded_count
end

#max_xlsx_sheet_countInteger?

Returns the value of attribute max_xlsx_sheet_count.

Returns:

  • (Integer, nil)


2031
2032
2033
# File 'sig/types.rbs', line 2031

def max_xlsx_sheet_count
  @max_xlsx_sheet_count
end

#max_xlsx_workbook_cellsInteger?

Returns the value of attribute max_xlsx_workbook_cells.

Returns:

  • (Integer, nil)


2032
2033
2034
# File 'sig/types.rbs', line 2032

def max_xlsx_workbook_cells
  @max_xlsx_workbook_cells
end

#min_chars_per_pageInteger?

Returns the value of attribute min_chars_per_page.

Returns:

  • (Integer, nil)


2030
2031
2032
# File 'sig/types.rbs', line 2030

def min_chars_per_page
  @min_chars_per_page
end

#page_count_thresholdInteger?

Returns the value of attribute page_count_threshold.

Returns:

  • (Integer, nil)


2026
2027
2028
# File 'sig/types.rbs', line 2026

def page_count_threshold
  @page_count_threshold
end

#target_pages_per_chunkInteger?

Returns the value of attribute target_pages_per_chunk.

Returns:

  • (Integer, nil)


2027
2028
2029
# File 'sig/types.rbs', line 2027

def target_pages_per_chunk
  @target_pages_per_chunk
end

#text_layer_thresholdFloat?

Returns the value of attribute text_layer_threshold.

Returns:

  • (Float, nil)


2024
2025
2026
# File 'sig/types.rbs', line 2024

def text_layer_threshold
  @text_layer_threshold
end

Class Method Details

.defaultHeuristicsConfig

Returns:



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

def self.default: () -> HeuristicsConfig

Instance Method Details

#validatevoid

This method returns an undefined value.



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

def validate: () -> void