Class: Dataleon::Models::Individuals::GenericDocument::Table

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dataleon/models/individuals/generic_document.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id: nil, checks: nil, created_at: nil, document_type: nil, name: nil, signed_url: nil, state: nil, status: nil, tables: nil, values: nil) ⇒ Object

Represents a general document with metadata, verification checks, and extracted data.

Parameters:

  • id (String) (defaults to: nil)

    Unique identifier of the document.

  • checks (Array<Dataleon::Models::Check>) (defaults to: nil)

    List of verification checks performed on the document.

  • created_at (Time) (defaults to: nil)

    Timestamp when the document was created or uploaded.

  • document_type (String) (defaults to: nil)

    Type/category of the document.

  • name (String) (defaults to: nil)

    Name or label for the document.

  • signed_url (String) (defaults to: nil)

    Signed URL for accessing the document file.

  • state (String) (defaults to: nil)

    Current processing state of the document (e.g., WAITING, PROCESSED).

  • status (String) (defaults to: nil)

    Status of the document reception or approval.

  • tables (Array<Dataleon::Models::Individuals::GenericDocument::Table>) (defaults to: nil)

    List of tables extracted from the document, each containing operations.

  • values (Array<Dataleon::Models::Individuals::GenericDocument::Value>) (defaults to: nil)

    Extracted key-value pairs from the document, including confidence scores.



92
93
94
95
96
97
98
99
100
101
# File 'lib/dataleon/models/individuals/generic_document.rb', line 92

class Table < Dataleon::Internal::Type::BaseModel
  # @!attribute operation
  #   List of operations or actions associated with the table.
  #
  #   @return [Array<Object>, nil]
  optional :operation, Dataleon::Internal::Type::ArrayOf[Dataleon::Internal::Type::Unknown]

  # @!method initialize(operation: nil)
  #   @param operation [Array<Object>] List of operations or actions associated with the table.
end

Instance Attribute Details

#operationArray<Object>?

List of operations or actions associated with the table.

Returns:

  • (Array<Object>, nil)


97
# File 'lib/dataleon/models/individuals/generic_document.rb', line 97

optional :operation, Dataleon::Internal::Type::ArrayOf[Dataleon::Internal::Type::Unknown]