Class: Inttegro::Chime::InlineRecipientVariant1

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

Overview

Typed representation of the inline recipient variant1 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/inline_recipient_variant1.rb', line 37

class InlineRecipientVariant1 < T::Struct
  const :name, T.nilable(String), default: nil
  const :phone, Inttegro::Chime::InlineRecipientVariant1Phone
  const :type, Inttegro::Chime::InlineRecipientVariant1Type
end

#phone ⇒ Inttegro::Chime::InlineRecipientVariant1Phone (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/inline_recipient_variant1.rb', line 37

class InlineRecipientVariant1 < T::Struct
  const :name, T.nilable(String), default: nil
  const :phone, Inttegro::Chime::InlineRecipientVariant1Phone
  const :type, Inttegro::Chime::InlineRecipientVariant1Type
end

#type ⇒ Inttegro::Chime::InlineRecipientVariant1Type (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/inline_recipient_variant1.rb', line 37

class InlineRecipientVariant1 < T::Struct
  const :name, T.nilable(String), default: nil
  const :phone, Inttegro::Chime::InlineRecipientVariant1Phone
  const :type, Inttegro::Chime::InlineRecipientVariant1Type
end