Class: Telnyx::Models::WhatsappMessageContent::Text
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::WhatsappMessageContent::Text
- Defined in:
- lib/telnyx/models/whatsapp_message_content.rb,
sig/telnyx/models/whatsapp_message_content.rbs
Overview
Instance Attribute Summary collapse
-
#body ⇒ String
The text message body.
-
#preview_url ⇒ Boolean?
Whether to show a URL preview in the message.
Instance Method Summary collapse
-
#initialize ⇒ Text
constructor
A new instance of Text.
- #to_hash ⇒ { body: String, preview_url: bool }
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 ⇒ Text
Returns a new instance of Text.
295 |
# File 'sig/telnyx/models/whatsapp_message_content.rbs', line 295
def initialize: (body: String, ?preview_url: bool) -> void
|
Instance Attribute Details
#body ⇒ String
The text message body.
263 |
# File 'lib/telnyx/models/whatsapp_message_content.rb', line 263 required :body, String |
#preview_url ⇒ Boolean?
Whether to show a URL preview in the message.
269 |
# File 'lib/telnyx/models/whatsapp_message_content.rb', line 269 optional :preview_url, Telnyx::Internal::Type::Boolean |
Instance Method Details
#to_hash ⇒ { body: String, preview_url: bool }
297 |
# File 'sig/telnyx/models/whatsapp_message_content.rbs', line 297
def to_hash: -> { body: String, preview_url: bool }
|