Class: ContextDev::Models::IndustryRetrieveNaicsResponse::Code

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/context_dev/models/industry_retrieve_naics_response.rb

Defined Under Namespace

Modules: Confidence

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(code:, confidence:, name:) ⇒ Object

Parameters:



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/context_dev/models/industry_retrieve_naics_response.rb', line 41

class Code < ContextDev::Internal::Type::BaseModel
  # @!attribute code
  #   NAICS code
  #
  #   @return [String]
  required :code, String

  # @!attribute confidence
  #   Confidence level for how well this NAICS code matches the company description
  #
  #   @return [Symbol, ContextDev::Models::IndustryRetrieveNaicsResponse::Code::Confidence]
  required :confidence, enum: -> { ContextDev::Models::IndustryRetrieveNaicsResponse::Code::Confidence }

  # @!attribute name
  #   NAICS title
  #
  #   @return [String]
  required :name, String

  # @!method initialize(code:, confidence:, name:)
  #   @param code [String] NAICS code
  #
  #   @param confidence [Symbol, ContextDev::Models::IndustryRetrieveNaicsResponse::Code::Confidence] Confidence level for how well this NAICS code matches the company description
  #
  #   @param name [String] NAICS title

  # Confidence level for how well this NAICS code matches the company description
  #
  # @see ContextDev::Models::IndustryRetrieveNaicsResponse::Code#confidence
  module Confidence
    extend ContextDev::Internal::Type::Enum

    HIGH = :high
    MEDIUM = :medium
    LOW = :low

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#codeString

NAICS code

Returns:

  • (String)


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

required :code, String

#confidenceSymbol, ContextDev::Models::IndustryRetrieveNaicsResponse::Code::Confidence

Confidence level for how well this NAICS code matches the company description



52
# File 'lib/context_dev/models/industry_retrieve_naics_response.rb', line 52

required :confidence, enum: -> { ContextDev::Models::IndustryRetrieveNaicsResponse::Code::Confidence }

#nameString

NAICS title

Returns:

  • (String)


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

required :name, String