Class: Telnyx::Models::EmailInboxes::Messages::ReplyEmailInboxMessageRequest

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/email_inboxes/messages/reply_email_inbox_message_request.rb,
sig/telnyx/models/email_inboxes/messages/reply_email_inbox_message_request.rbs

Direct Known Subclasses

ActionReplyAllParams, ActionReplyParams

Instance Attribute Summary collapse

Instance Method Summary collapse

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: nil, text: nil) ⇒ ReplyEmailInboxMessageRequest

At least one of text or html must contain a non-whitespace body. Recipients are derived from the source message; caller-supplied to, cc, or bcc values are ignored.

Parameters:

  • html (String) (defaults to: nil)

    HTML reply body.

  • text (String) (defaults to: nil)

    Plain-text reply body.

  • html: (String) (defaults to: nil)
  • text: (String) (defaults to: nil)


# File 'lib/telnyx/models/email_inboxes/messages/reply_email_inbox_message_request.rb', line 20

Instance Attribute Details

#htmlString?

HTML reply body.

Parameters:

  • (String)

Returns:

  • (String, nil)


12
# File 'lib/telnyx/models/email_inboxes/messages/reply_email_inbox_message_request.rb', line 12

optional :html, String

#textString?

Plain-text reply body.

Parameters:

  • (String)

Returns:

  • (String, nil)


18
# File 'lib/telnyx/models/email_inboxes/messages/reply_email_inbox_message_request.rb', line 18

optional :text, String

Instance Method Details

#to_hash{ html: String, text: String }

Returns:

  • ({ html: String, text: String })


18
# File 'sig/telnyx/models/email_inboxes/messages/reply_email_inbox_message_request.rbs', line 18

def to_hash: -> { html: String, text: String }