Class: VitableConnect::Models::Employer::Contact

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

Overview

See Also:

  • VitableConnect::Models::Employer#contact

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(email:, phone:) ⇒ Contact

Primary company-admin contact (email + phone; company admins have no person name).

Parameters:

  • email (String, nil)

    Primary contact email

  • phone (String, nil)

    Primary contact phone, or null

  • email: (String, nil)
  • phone: (String, nil)


# File 'lib/vitable_connect/models/employer.rb', line 179

Instance Attribute Details

#emailString?

Primary contact email

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


171
# File 'lib/vitable_connect/models/employer.rb', line 171

required :email, String, nil?: true

#phoneString?

Primary contact phone, or null

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


177
# File 'lib/vitable_connect/models/employer.rb', line 177

required :phone, String, nil?: true

Instance Method Details

#to_hash{ email: String?, phone: String? }

Returns:

  • ({ email: String?, phone: String? })


125
# File 'sig/vitable_connect/models/employer.rbs', line 125

def to_hash: -> { email: String?, phone: String? }