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


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

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)


975
976
977
# File 'sig/types.rbs', line 975

def byte_end
  @byte_end
end

#byte_startInteger (readonly)

Returns the value of attribute byte_start.

Returns:

  • (Integer)


974
975
976
# File 'sig/types.rbs', line 974

def byte_start
  @byte_start
end

#chunk_indexInteger (readonly)

Returns the value of attribute chunk_index.

Returns:

  • (Integer)


977
978
979
# File 'sig/types.rbs', line 977

def chunk_index
  @chunk_index
end

#first_pageInteger (readonly)

Returns the value of attribute first_page.

Returns:

  • (Integer)


979
980
981
# File 'sig/types.rbs', line 979

def first_page
  @first_page
end

#heading_contextHeadingContext (readonly)

Returns the value of attribute heading_context.

Returns:



981
982
983
# File 'sig/types.rbs', line 981

def heading_context
  @heading_context
end

#heading_pathArray[String] (readonly)

Returns the value of attribute heading_path.

Returns:

  • (Array[String])


982
983
984
# File 'sig/types.rbs', line 982

def heading_path
  @heading_path
end

#image_indicesArray[Integer] (readonly)

Returns the value of attribute image_indices.

Returns:

  • (Array[Integer])


983
984
985
# File 'sig/types.rbs', line 983

def image_indices
  @image_indices
end

#last_pageInteger (readonly)

Returns the value of attribute last_page.

Returns:

  • (Integer)


980
981
982
# File 'sig/types.rbs', line 980

def last_page
  @last_page
end

#token_countInteger (readonly)

Returns the value of attribute token_count.

Returns:

  • (Integer)


976
977
978
# File 'sig/types.rbs', line 976

def token_count
  @token_count
end

#total_chunksInteger (readonly)

Returns the value of attribute total_chunks.

Returns:

  • (Integer)


978
979
980
# File 'sig/types.rbs', line 978

def total_chunks
  @total_chunks
end