Class: Inttegro::Chime::PhoneRecipient

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/chime/phone_recipient.rb

Overview

Typed representation of the phone recipient object in the Inttegro API.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#name ⇒ String? (readonly)

Value of the name field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: name.

Returns:

  • (String, nil)


37
38
39
40
41
# File 'lib/inttegro/chime/phone_recipient.rb', line 37

class PhoneRecipient < T::Struct
  const :name, T.nilable(String), default: nil
  const :phone, Inttegro::Chime::PhoneRecipientPhone
  const :type, Inttegro::Chime::PhoneRecipientType
end

#phone ⇒ Inttegro::Chime::PhoneRecipientPhone (readonly)

Value of the phone field in the Inttegro API payload.

Required in the API payload. Wire name: phone.



37
38
39
40
41
# File 'lib/inttegro/chime/phone_recipient.rb', line 37

class PhoneRecipient < T::Struct
  const :name, T.nilable(String), default: nil
  const :phone, Inttegro::Chime::PhoneRecipientPhone
  const :type, Inttegro::Chime::PhoneRecipientType
end

#type ⇒ Inttegro::Chime::PhoneRecipientType (readonly)

Value of the type field in the Inttegro API payload.

Required in the API payload. Wire name: type.



37
38
39
40
41
# File 'lib/inttegro/chime/phone_recipient.rb', line 37

class PhoneRecipient < T::Struct
  const :name, T.nilable(String), default: nil
  const :phone, Inttegro::Chime::PhoneRecipientPhone
  const :type, Inttegro::Chime::PhoneRecipientType
end