Class: FinchAPI::Models::Sandbox::IndividualUpdateParams::Email

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/finch_api/models/sandbox/individual_update_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_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!

Constructor Details

#initialize(data: nil, type: nil) ⇒ Object

Parameters:

  • data (String) (defaults to: nil)
  • type (Symbol, FinchAPI::Sandbox::IndividualUpdateParams::Email::Type, nil) (defaults to: nil)


121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# File 'lib/finch_api/models/sandbox/individual_update_params.rb', line 121

class Email < FinchAPI::Internal::Type::BaseModel
  # @!attribute data
  #
  #   @return [String, nil]
  optional :data, String

  # @!attribute type
  #
  #   @return [Symbol, FinchAPI::Sandbox::IndividualUpdateParams::Email::Type, nil]
  optional :type, enum: -> { FinchAPI::Sandbox::IndividualUpdateParams::Email::Type }, nil?: true

  # @!method initialize(data: nil, type: nil)
  #   @param data [String]
  #   @param type [Symbol, FinchAPI::Sandbox::IndividualUpdateParams::Email::Type, nil]

  # @see FinchAPI::Sandbox::IndividualUpdateParams::Email#type
  module Type
    extend FinchAPI::Internal::Type::Enum

    WORK = :work
    PERSONAL = :personal

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

Instance Attribute Details

#dataString?

Returns:

  • (String, nil)


125
# File 'lib/finch_api/models/sandbox/individual_update_params.rb', line 125

optional :data, String

#typeSymbol, ...

Returns:

  • (Symbol, FinchAPI::Sandbox::IndividualUpdateParams::Email::Type, nil)


130
# File 'lib/finch_api/models/sandbox/individual_update_params.rb', line 130

optional :type, enum: -> { FinchAPI::Sandbox::IndividualUpdateParams::Email::Type }, nil?: true