Class: ContextDev::Models::PersonEnrichResponse::Match::NotFound

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

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

#initializeNotFound

Returns a new instance of NotFound.

Parameters:

  • person: (nil)
  • score: (nil)
  • status: (:not_found)


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

def initialize: (person: nil, score: nil, ?status: :not_found) -> void

Instance Attribute Details

#personnil

Parameters:

  • value (nil)

Returns:

  • (nil)


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

required :person, NilClass

#scorenil

Parameters:

  • value (nil)

Returns:

  • (nil)


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

required :score, NilClass

#statusSymbol, :not_found

Parameters:

  • value (:not_found)

Returns:

  • (Symbol, :not_found)


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

required :status, const: :not_found

Instance Method Details

#to_hash{ person: nil, score: nil, status: :not_found }

Returns:

  • ({ person: nil, score: nil, status: :not_found })


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

def to_hash: -> { person: nil, score: nil, status: :not_found }