Class: Xberg::ChunkMetadata
- Inherits:
-
Object
- Object
- Xberg::ChunkMetadata
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#byte_end ⇒ Integer
readonly
Returns the value of attribute byte_end.
-
#byte_start ⇒ Integer
readonly
Returns the value of attribute byte_start.
-
#chunk_index ⇒ Integer
readonly
Returns the value of attribute chunk_index.
-
#classifications ⇒ Array[ClassificationLabel]
readonly
Returns the value of attribute classifications.
-
#first_page ⇒ Integer?
readonly
Returns the value of attribute first_page.
-
#heading_context ⇒ HeadingContext?
readonly
Returns the value of attribute heading_context.
-
#heading_path ⇒ Array[String]
readonly
Returns the value of attribute heading_path.
-
#image_indices ⇒ Array[Integer]
readonly
Returns the value of attribute image_indices.
-
#last_page ⇒ Integer?
readonly
Returns the value of attribute last_page.
-
#node_ids ⇒ Array[String]
readonly
Returns the value of attribute node_ids.
-
#page_spans ⇒ Array[PageSpan]
readonly
Returns the value of attribute page_spans.
-
#token_count ⇒ Integer?
readonly
Returns the value of attribute token_count.
-
#total_chunks ⇒ Integer
readonly
Returns the value of attribute total_chunks.
Instance Method Summary collapse
-
#initialize ⇒ ChunkMetadata
constructor
A new instance of ChunkMetadata.
Constructor Details
#initialize ⇒ ChunkMetadata
Returns a new instance of ChunkMetadata.
196 |
# File 'sig/types.rbs', line 196 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], node_ids: Array[String], page_spans: Array[PageSpan], classifications: Array[ClassificationLabel]) -> void |
Instance Attribute Details
#byte_end ⇒ Integer (readonly)
Returns the value of attribute byte_end.
183 184 185 |
# File 'sig/types.rbs', line 183 def byte_end @byte_end end |
#byte_start ⇒ Integer (readonly)
Returns the value of attribute byte_start.
182 183 184 |
# File 'sig/types.rbs', line 182 def byte_start @byte_start end |
#chunk_index ⇒ Integer (readonly)
Returns the value of attribute chunk_index.
185 186 187 |
# File 'sig/types.rbs', line 185 def chunk_index @chunk_index end |
#classifications ⇒ Array[ClassificationLabel] (readonly)
Returns the value of attribute classifications.
194 195 196 |
# File 'sig/types.rbs', line 194 def classifications @classifications end |
#first_page ⇒ Integer? (readonly)
Returns the value of attribute first_page.
187 188 189 |
# File 'sig/types.rbs', line 187 def first_page @first_page end |
#heading_context ⇒ HeadingContext? (readonly)
Returns the value of attribute heading_context.
189 190 191 |
# File 'sig/types.rbs', line 189 def heading_context @heading_context end |
#heading_path ⇒ Array[String] (readonly)
Returns the value of attribute heading_path.
190 191 192 |
# File 'sig/types.rbs', line 190 def heading_path @heading_path end |
#image_indices ⇒ Array[Integer] (readonly)
Returns the value of attribute image_indices.
191 192 193 |
# File 'sig/types.rbs', line 191 def image_indices @image_indices end |
#last_page ⇒ Integer? (readonly)
Returns the value of attribute last_page.
188 189 190 |
# File 'sig/types.rbs', line 188 def last_page @last_page end |
#node_ids ⇒ Array[String] (readonly)
Returns the value of attribute node_ids.
192 193 194 |
# File 'sig/types.rbs', line 192 def node_ids @node_ids end |
#page_spans ⇒ Array[PageSpan] (readonly)
Returns the value of attribute page_spans.
193 194 195 |
# File 'sig/types.rbs', line 193 def page_spans @page_spans end |
#token_count ⇒ Integer? (readonly)
Returns the value of attribute token_count.
184 185 186 |
# File 'sig/types.rbs', line 184 def token_count @token_count end |
#total_chunks ⇒ Integer (readonly)
Returns the value of attribute total_chunks.
186 187 188 |
# File 'sig/types.rbs', line 186 def total_chunks @total_chunks end |