Class: Xberg::ChunkMetadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeChunkMetadata

Returns a new instance of ChunkMetadata.

Parameters:

  • byte_start: (Integer)
  • byte_end: (Integer)
  • token_count: (Integer)
  • chunk_index: (Integer)
  • total_chunks: (Integer)
  • first_page: (Integer)
  • last_page: (Integer)
  • heading_context: (HeadingContext)
  • heading_path: (Array[String])
  • image_indices: (Array[Integer])


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

def initialize: (byte_start: Integer, byte_end: Integer, ?token_count: Integer, chunk_index: Integer, total_chunks: Integer, ?first_page: Integer, ?last_page: Integer, ?heading_context: HeadingContext, heading_path: Array[String], image_indices: Array[Integer]) -> void

Instance Attribute Details

#byte_endInteger (readonly)

Returns the value of attribute byte_end.

Returns:

  • (Integer)


1015
1016
1017
# File 'sig/types.rbs', line 1015

def byte_end
  @byte_end
end

#byte_startInteger (readonly)

Returns the value of attribute byte_start.

Returns:

  • (Integer)


1014
1015
1016
# File 'sig/types.rbs', line 1014

def byte_start
  @byte_start
end

#chunk_indexInteger (readonly)

Returns the value of attribute chunk_index.

Returns:

  • (Integer)


1017
1018
1019
# File 'sig/types.rbs', line 1017

def chunk_index
  @chunk_index
end

#first_pageInteger (readonly)

Returns the value of attribute first_page.

Returns:

  • (Integer)


1019
1020
1021
# File 'sig/types.rbs', line 1019

def first_page
  @first_page
end

#heading_contextHeadingContext (readonly)

Returns the value of attribute heading_context.

Returns:



1021
1022
1023
# File 'sig/types.rbs', line 1021

def heading_context
  @heading_context
end

#heading_pathArray[String] (readonly)

Returns the value of attribute heading_path.

Returns:

  • (Array[String])


1022
1023
1024
# File 'sig/types.rbs', line 1022

def heading_path
  @heading_path
end

#image_indicesArray[Integer] (readonly)

Returns the value of attribute image_indices.

Returns:

  • (Array[Integer])


1023
1024
1025
# File 'sig/types.rbs', line 1023

def image_indices
  @image_indices
end

#last_pageInteger (readonly)

Returns the value of attribute last_page.

Returns:

  • (Integer)


1020
1021
1022
# File 'sig/types.rbs', line 1020

def last_page
  @last_page
end

#token_countInteger (readonly)

Returns the value of attribute token_count.

Returns:

  • (Integer)


1016
1017
1018
# File 'sig/types.rbs', line 1016

def token_count
  @token_count
end

#total_chunksInteger (readonly)

Returns the value of attribute total_chunks.

Returns:

  • (Integer)


1018
1019
1020
# File 'sig/types.rbs', line 1018

def total_chunks
  @total_chunks
end