Class: Xberg::Metadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMetadata

Returns a new instance of Metadata.

Parameters:

  • title: (String)
  • subject: (String)
  • authors: (Array[String])
  • keywords: (Array[String])
  • language: (String)
  • created_at: (String)
  • modified_at: (String)
  • created_by: (String)
  • modified_by: (String)
  • pages: (PageStructure)
  • format: (FormatMetadata)
  • image_preprocessing: (ImagePreprocessingMetadata)
  • json_schema: (json_value)
  • error: (ErrorMetadata)
  • extraction_duration_ms: (Integer)
  • category: (String)
  • tags: (Array[String])
  • document_version: (String)
  • abstract_text: (String)
  • output_format: (String)
  • ocr_used: (Boolean)
  • additional: (Hash[String, json_value])


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

def initialize: (?title: String, ?subject: String, ?authors: Array[String], ?keywords: Array[String], ?language: String, ?created_at: String, ?modified_at: String, ?created_by: String, ?modified_by: String, ?pages: PageStructure, ?format: FormatMetadata, ?image_preprocessing: ImagePreprocessingMetadata, ?json_schema: json_value, ?error: ErrorMetadata, ?extraction_duration_ms: Integer, ?category: String, ?tags: Array[String], ?document_version: String, ?abstract_text: String, ?output_format: String, ?ocr_used: bool, ?additional: Hash[String, json_value]) -> void

Instance Attribute Details

#abstract_textString?

Returns the value of attribute abstract_text.

Returns:

  • (String, nil)


1299
1300
1301
# File 'sig/types.rbs', line 1299

def abstract_text
  @abstract_text
end

#additionalHash[String, json_value]?

Returns the value of attribute additional.

Returns:

  • (Hash[String, json_value], nil)


1302
1303
1304
# File 'sig/types.rbs', line 1302

def additional
  @additional
end

#authorsArray[String]?

Returns the value of attribute authors.

Returns:

  • (Array[String], nil)


1283
1284
1285
# File 'sig/types.rbs', line 1283

def authors
  @authors
end

#categoryString?

Returns the value of attribute category.

Returns:

  • (String, nil)


1296
1297
1298
# File 'sig/types.rbs', line 1296

def category
  @category
end

#created_atString?

Returns the value of attribute created_at.

Returns:

  • (String, nil)


1286
1287
1288
# File 'sig/types.rbs', line 1286

def created_at
  @created_at
end

#created_byString?

Returns the value of attribute created_by.

Returns:

  • (String, nil)


1288
1289
1290
# File 'sig/types.rbs', line 1288

def created_by
  @created_by
end

#document_versionString?

Returns the value of attribute document_version.

Returns:

  • (String, nil)


1298
1299
1300
# File 'sig/types.rbs', line 1298

def document_version
  @document_version
end

#errorErrorMetadata?

Returns the value of attribute error.

Returns:



1294
1295
1296
# File 'sig/types.rbs', line 1294

def error
  @error
end

#extraction_duration_msInteger?

Returns the value of attribute extraction_duration_ms.

Returns:

  • (Integer, nil)


1295
1296
1297
# File 'sig/types.rbs', line 1295

def extraction_duration_ms
  @extraction_duration_ms
end

#formatFormatMetadata?

Returns the value of attribute format.

Returns:



1291
1292
1293
# File 'sig/types.rbs', line 1291

def format
  @format
end

#image_preprocessingImagePreprocessingMetadata?

Returns the value of attribute image_preprocessing.

Returns:



1292
1293
1294
# File 'sig/types.rbs', line 1292

def image_preprocessing
  @image_preprocessing
end

#json_schemajson_value?

Returns the value of attribute json_schema.

Returns:

  • (json_value, nil)


1293
1294
1295
# File 'sig/types.rbs', line 1293

def json_schema
  @json_schema
end

#keywordsArray[String]?

Returns the value of attribute keywords.

Returns:

  • (Array[String], nil)


1284
1285
1286
# File 'sig/types.rbs', line 1284

def keywords
  @keywords
end

#languageString?

Returns the value of attribute language.

Returns:

  • (String, nil)


1285
1286
1287
# File 'sig/types.rbs', line 1285

def language
  @language
end

#modified_atString?

Returns the value of attribute modified_at.

Returns:

  • (String, nil)


1287
1288
1289
# File 'sig/types.rbs', line 1287

def modified_at
  @modified_at
end

#modified_byString?

Returns the value of attribute modified_by.

Returns:

  • (String, nil)


1289
1290
1291
# File 'sig/types.rbs', line 1289

def modified_by
  @modified_by
end

#ocr_usedBoolean?

Returns the value of attribute ocr_used.

Returns:

  • (Boolean, nil)


1301
1302
1303
# File 'sig/types.rbs', line 1301

def ocr_used
  @ocr_used
end

#output_formatString?

Returns the value of attribute output_format.

Returns:

  • (String, nil)


1300
1301
1302
# File 'sig/types.rbs', line 1300

def output_format
  @output_format
end

#pagesPageStructure?

Returns the value of attribute pages.

Returns:



1290
1291
1292
# File 'sig/types.rbs', line 1290

def pages
  @pages
end

#subjectString?

Returns the value of attribute subject.

Returns:

  • (String, nil)


1282
1283
1284
# File 'sig/types.rbs', line 1282

def subject
  @subject
end

#tagsArray[String]?

Returns the value of attribute tags.

Returns:

  • (Array[String], nil)


1297
1298
1299
# File 'sig/types.rbs', line 1297

def tags
  @tags
end

#titleString?

Returns the value of attribute title.

Returns:

  • (String, nil)


1281
1282
1283
# File 'sig/types.rbs', line 1281

def title
  @title
end

Instance Method Details

#is_emptyBoolean

Returns:

  • (Boolean)


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

def is_empty: () -> bool