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


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

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)


1244
1245
1246
# File 'sig/types.rbs', line 1244

def abstract_text
  @abstract_text
end

#additionalHash[String, json_value]?

Returns the value of attribute additional.

Returns:

  • (Hash[String, json_value], nil)


1247
1248
1249
# File 'sig/types.rbs', line 1247

def additional
  @additional
end

#authorsArray[String]?

Returns the value of attribute authors.

Returns:

  • (Array[String], nil)


1228
1229
1230
# File 'sig/types.rbs', line 1228

def authors
  @authors
end

#categoryString?

Returns the value of attribute category.

Returns:

  • (String, nil)


1241
1242
1243
# File 'sig/types.rbs', line 1241

def category
  @category
end

#created_atString?

Returns the value of attribute created_at.

Returns:

  • (String, nil)


1231
1232
1233
# File 'sig/types.rbs', line 1231

def created_at
  @created_at
end

#created_byString?

Returns the value of attribute created_by.

Returns:

  • (String, nil)


1233
1234
1235
# File 'sig/types.rbs', line 1233

def created_by
  @created_by
end

#document_versionString?

Returns the value of attribute document_version.

Returns:

  • (String, nil)


1243
1244
1245
# File 'sig/types.rbs', line 1243

def document_version
  @document_version
end

#errorErrorMetadata?

Returns the value of attribute error.

Returns:



1239
1240
1241
# File 'sig/types.rbs', line 1239

def error
  @error
end

#extraction_duration_msInteger?

Returns the value of attribute extraction_duration_ms.

Returns:

  • (Integer, nil)


1240
1241
1242
# File 'sig/types.rbs', line 1240

def extraction_duration_ms
  @extraction_duration_ms
end

#formatFormatMetadata?

Returns the value of attribute format.

Returns:



1236
1237
1238
# File 'sig/types.rbs', line 1236

def format
  @format
end

#image_preprocessingImagePreprocessingMetadata?

Returns the value of attribute image_preprocessing.

Returns:



1237
1238
1239
# File 'sig/types.rbs', line 1237

def image_preprocessing
  @image_preprocessing
end

#json_schemajson_value?

Returns the value of attribute json_schema.

Returns:

  • (json_value, nil)


1238
1239
1240
# File 'sig/types.rbs', line 1238

def json_schema
  @json_schema
end

#keywordsArray[String]?

Returns the value of attribute keywords.

Returns:

  • (Array[String], nil)


1229
1230
1231
# File 'sig/types.rbs', line 1229

def keywords
  @keywords
end

#languageString?

Returns the value of attribute language.

Returns:

  • (String, nil)


1230
1231
1232
# File 'sig/types.rbs', line 1230

def language
  @language
end

#modified_atString?

Returns the value of attribute modified_at.

Returns:

  • (String, nil)


1232
1233
1234
# File 'sig/types.rbs', line 1232

def modified_at
  @modified_at
end

#modified_byString?

Returns the value of attribute modified_by.

Returns:

  • (String, nil)


1234
1235
1236
# File 'sig/types.rbs', line 1234

def modified_by
  @modified_by
end

#ocr_usedBoolean?

Returns the value of attribute ocr_used.

Returns:

  • (Boolean, nil)


1246
1247
1248
# File 'sig/types.rbs', line 1246

def ocr_used
  @ocr_used
end

#output_formatString?

Returns the value of attribute output_format.

Returns:

  • (String, nil)


1245
1246
1247
# File 'sig/types.rbs', line 1245

def output_format
  @output_format
end

#pagesPageStructure?

Returns the value of attribute pages.

Returns:



1235
1236
1237
# File 'sig/types.rbs', line 1235

def pages
  @pages
end

#subjectString?

Returns the value of attribute subject.

Returns:

  • (String, nil)


1227
1228
1229
# File 'sig/types.rbs', line 1227

def subject
  @subject
end

#tagsArray[String]?

Returns the value of attribute tags.

Returns:

  • (Array[String], nil)


1242
1243
1244
# File 'sig/types.rbs', line 1242

def tags
  @tags
end

#titleString?

Returns the value of attribute title.

Returns:

  • (String, nil)


1226
1227
1228
# File 'sig/types.rbs', line 1226

def title
  @title
end

Instance Method Details

#is_emptyBoolean

Returns:

  • (Boolean)


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

def is_empty: () -> bool