Class: Inttegro::Chime::PhoneRecipient
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Chime::PhoneRecipient
- 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
-
#name ⇒ String?
readonly
Value of the
namefield in the Inttegro API payload. -
#phone ⇒ Inttegro::Chime::PhoneRecipientPhone
readonly
Value of the
phonefield in the Inttegro API payload. -
#type ⇒ Inttegro::Chime::PhoneRecipientType
readonly
Value of the
typefield in the Inttegro API payload.
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.
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 |