Class: ContextDev::Models::PersonEnrichResponse::Match::Candidate

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

Defined Under Namespace

Classes: Person

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(person:, score:, status: :candidate) ⇒ Object

The highest-scoring person candidate.

Parameters:



# File 'lib/context_dev/models/person_enrich_response.rb', line 58

Instance Attribute Details

#personContextDev::Models::PersonEnrichResponse::Match::Candidate::Person



46
# File 'lib/context_dev/models/person_enrich_response.rb', line 46

required :person, -> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person }

#scoreInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


51
# File 'lib/context_dev/models/person_enrich_response.rb', line 51

required :score, Integer

#statusSymbol, :candidate

Parameters:

  • value (:candidate)

Returns:

  • (Symbol, :candidate)


56
# File 'lib/context_dev/models/person_enrich_response.rb', line 56

required :status, const: :candidate

Instance Method Details

#to_hash{

Returns:

  • ({)


55
# File 'sig/context_dev/models/person_enrich_response.rbs', line 55

def to_hash: -> {