Class: Inttegro::MessageTemplate::EmailContentFrom
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::MessageTemplate::EmailContentFrom
- Defined in:
- lib/inttegro/message_template/email_content_from.rb
Overview
Optional sender identity. When omitted, Mercurio stores and uses the configured default sender. A supplied address must be a literal sender approved for the authenticated application; template expressions are not accepted in the sender address.
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
-
#address ⇒ String
readonly
Literal or templated mailbox address, such as
{{recipient_email}}. -
#name ⇒ String?
readonly
Value of the
namefield in the Inttegro API payload.
Instance Attribute Details
#address ⇒ String (readonly)
Literal or templated mailbox address, such as {{recipient_email}}.
Required in the API payload. Wire name: address.
31 32 33 34 |
# File 'lib/inttegro/message_template/email_content_from.rb', line 31 class EmailContentFrom < T::Struct const :address, String const :name, T.nilable(String), default: nil 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.
31 32 33 34 |
# File 'lib/inttegro/message_template/email_content_from.rb', line 31 class EmailContentFrom < T::Struct const :address, String const :name, T.nilable(String), default: nil end |