Class: PreludeSDK::Models::WatchPredictParams::Target

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/prelude_sdk/models/watch_predict_params.rb

Defined Under Namespace

Modules: Type

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(type:, value:) ⇒ Object

The prediction target. Only supports phone numbers for now.

Parameters:



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
81
# File 'lib/prelude_sdk/models/watch_predict_params.rb', line 49

class Target < PreludeSDK::Internal::Type::BaseModel
  # @!attribute type
  #   The type of the target. Either "phone_number" or "email_address".
  #
  #   @return [Symbol, PreludeSDK::Models::WatchPredictParams::Target::Type]
  required :type, enum: -> { PreludeSDK::WatchPredictParams::Target::Type }

  # @!attribute value
  #   An E.164 formatted phone number or an email address.
  #
  #   @return [String]
  required :value, String

  # @!method initialize(type:, value:)
  #   The prediction target. Only supports phone numbers for now.
  #
  #   @param type [Symbol, PreludeSDK::Models::WatchPredictParams::Target::Type] The type of the target. Either "phone_number" or "email_address".
  #
  #   @param value [String] An E.164 formatted phone number or an email address.

  # The type of the target. Either "phone_number" or "email_address".
  #
  # @see PreludeSDK::Models::WatchPredictParams::Target#type
  module Type
    extend PreludeSDK::Internal::Type::Enum

    PHONE_NUMBER = :phone_number
    EMAIL_ADDRESS = :email_address

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

Instance Attribute Details

#typeSymbol, PreludeSDK::Models::WatchPredictParams::Target::Type

The type of the target. Either “phone_number” or “email_address”.



54
# File 'lib/prelude_sdk/models/watch_predict_params.rb', line 54

required :type, enum: -> { PreludeSDK::WatchPredictParams::Target::Type }

#valueString

An E.164 formatted phone number or an email address.

Returns:

  • (String)


60
# File 'lib/prelude_sdk/models/watch_predict_params.rb', line 60

required :value, String