Class: Telnyx::Models::EmailMessageRetrieveResponse::Data

Inherits:
Telnyx::Models::EmailInboxes::EmailMessage show all
Defined in:
lib/telnyx/models/email_message_retrieve_response.rb,
sig/telnyx/models/email_message_retrieve_response.rbs

Overview

See Also:

  • Telnyx::Models::EmailMessageRetrieveResponse#data

Instance Attribute Summary collapse

Attributes inherited from Telnyx::Models::EmailInboxes::EmailMessage

#attachments, #bcc, #cc, #created_at, #events, #from, #id, #inline_css, #recipient_statuses, #record_type, #reply_to, #sandbox, #scheduled_at, #status, #subject, #template_id, #template_variables, #to

Instance Method Summary collapse

Methods inherited from Telnyx::Models::EmailInboxes::EmailMessage

values

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(html_body:, text_body:) ⇒ Data

Returns a new instance of Data.

Parameters:

  • html_body (String, nil)

    HTML body submitted for the message.

  • text_body (String, nil)

    Plain-text body submitted for the message.

  • html_body: (String, nil)
  • text_body: (String, nil)


# File 'lib/telnyx/models/email_message_retrieve_response.rb', line 29

Instance Attribute Details

#html_bodyString?

HTML body submitted for the message.

Parameters:

  • _ (String, nil)

Returns:

  • (String, nil)


21
# File 'lib/telnyx/models/email_message_retrieve_response.rb', line 21

required :html_body, String, nil?: true

#text_bodyString?

Plain-text body submitted for the message.

Parameters:

  • _ (String, nil)

Returns:

  • (String, nil)


27
# File 'lib/telnyx/models/email_message_retrieve_response.rb', line 27

required :text_body, String, nil?: true

Instance Method Details

#to_hash{ html_body: String?, text_body: String? }

Returns:

  • ({ html_body: String?, text_body: String? })


30
# File 'sig/telnyx/models/email_message_retrieve_response.rbs', line 30

def to_hash: -> { html_body: String?, text_body: String? }