Class: Inttegro::Chime::InlineRecipientVariant2

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

Overview

Typed representation of the inline recipient variant2 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

#email ⇒ Inttegro::Chime::InlineRecipientVariant2Email (readonly)

Value of the email field in the Inttegro API payload.

Required in the API payload. Wire name: email.



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

class InlineRecipientVariant2 < T::Struct
  const :email, Inttegro::Chime::InlineRecipientVariant2Email
  const :name, T.nilable(String), default: nil
  const :type, Inttegro::Chime::InlineRecipientVariant2Type
end

#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_variant2.rb', line 37

class InlineRecipientVariant2 < T::Struct
  const :email, Inttegro::Chime::InlineRecipientVariant2Email
  const :name, T.nilable(String), default: nil
  const :type, Inttegro::Chime::InlineRecipientVariant2Type
end

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

class InlineRecipientVariant2 < T::Struct
  const :email, Inttegro::Chime::InlineRecipientVariant2Email
  const :name, T.nilable(String), default: nil
  const :type, Inttegro::Chime::InlineRecipientVariant2Type
end