Class: ContextDev::Models::BatchSubmitResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/context_dev/models/batch_submit_response.rb,
sig/context_dev/models/batch_submit_response.rbs

Overview

See Also:

  • ContextDev::Resources::Batch#submit

Defined Under Namespace

Modules: Code, Status Classes: KeyMetadata, Metadata, Person

Instance Attribute Summary collapse

Class Method 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(name:, normalized: nil, proficiency: nil) ⇒ Object

Parameters:

  • name (String)

    Skill name.

  • normalized (String) (defaults to: nil)

    Standardized skill name, when available.

  • proficiency (String) (defaults to: nil)

    Skill proficiency, when available.



# File 'lib/context_dev/models/batch_submit_response.rb', line 38

Instance Attribute Details

#codeInteger, ContextDev::Models::BatchSubmitResponse::Code

HTTP status code.

Parameters:

  • value (ContextDev::Models::BatchSubmitResponse::code)

Returns:



11
# File 'lib/context_dev/models/batch_submit_response.rb', line 11

required :code, enum: -> { ContextDev::Models::BatchSubmitResponse::Code }

#key_metadataContextDev::Models::BatchSubmitResponse::KeyMetadata?

Metadata about the API key used for the request. Included in every response whenever a valid API key is provided, even when the response status is not 200.



36
# File 'lib/context_dev/models/batch_submit_response.rb', line 36

optional :key_metadata, -> { ContextDev::Models::BatchSubmitResponse::KeyMetadata }

#metadataContextDev::Models::BatchSubmitResponse::Metadata

Additional response details.



17
# File 'lib/context_dev/models/batch_submit_response.rb', line 17

required :metadata, -> { ContextDev::Models::BatchSubmitResponse::Metadata }

#personContextDev::Models::BatchSubmitResponse::Person

Retrieved person profile.



23
# File 'lib/context_dev/models/batch_submit_response.rb', line 23

required :person, -> { ContextDev::Models::BatchSubmitResponse::Person }

#statusSymbol, ContextDev::Models::BatchSubmitResponse::Status

Response status.

Parameters:

  • value (ContextDev::Models::BatchSubmitResponse::status)

Returns:



29
# File 'lib/context_dev/models/batch_submit_response.rb', line 29

required :status, enum: -> { ContextDev::Models::BatchSubmitResponse::Status }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/context_dev/models/batch_submit_response.rb', line 60

Instance Method Details

#to_hash{

Returns:

  • ({)


35
# File 'sig/context_dev/models/batch_submit_response.rbs', line 35

def to_hash: -> {