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


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

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)


986
987
988
# File 'sig/types.rbs', line 986

def byte_end
  @byte_end
end

#byte_startInteger (readonly)

Returns the value of attribute byte_start.

Returns:

  • (Integer)


985
986
987
# File 'sig/types.rbs', line 985

def byte_start
  @byte_start
end

#chunk_indexInteger (readonly)

Returns the value of attribute chunk_index.

Returns:

  • (Integer)


988
989
990
# File 'sig/types.rbs', line 988

def chunk_index
  @chunk_index
end

#first_pageInteger (readonly)

Returns the value of attribute first_page.

Returns:

  • (Integer)


990
991
992
# File 'sig/types.rbs', line 990

def first_page
  @first_page
end

#heading_contextHeadingContext (readonly)

Returns the value of attribute heading_context.

Returns:



992
993
994
# File 'sig/types.rbs', line 992

def heading_context
  @heading_context
end

#heading_pathArray[String] (readonly)

Returns the value of attribute heading_path.

Returns:

  • (Array[String])


993
994
995
# File 'sig/types.rbs', line 993

def heading_path
  @heading_path
end

#image_indicesArray[Integer] (readonly)

Returns the value of attribute image_indices.

Returns:

  • (Array[Integer])


994
995
996
# File 'sig/types.rbs', line 994

def image_indices
  @image_indices
end

#last_pageInteger (readonly)

Returns the value of attribute last_page.

Returns:

  • (Integer)


991
992
993
# File 'sig/types.rbs', line 991

def last_page
  @last_page
end

#token_countInteger (readonly)

Returns the value of attribute token_count.

Returns:

  • (Integer)


987
988
989
# File 'sig/types.rbs', line 987

def token_count
  @token_count
end

#total_chunksInteger (readonly)

Returns the value of attribute total_chunks.

Returns:

  • (Integer)


989
990
991
# File 'sig/types.rbs', line 989

def total_chunks
  @total_chunks
end