Class: Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Interactive::Action::Card

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/message_send_whatsapp_response.rb

Defined Under Namespace

Modules: Type Classes: Action, Body, Header

Instance Attribute Summary collapse

Class Method 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(text: nil) ⇒ Object

Parameters:

  • text (String) (defaults to: nil)

    160 character maximum, up to 2 line breaks



# File 'lib/telnyx/models/message_send_whatsapp_response.rb', line 527

Instance Attribute Details

#card_indexInteger?

unique index for each card (0-9)

Returns:

  • (Integer, nil)


513
# File 'lib/telnyx/models/message_send_whatsapp_response.rb', line 513

optional :card_index, Integer

#typeSymbol, ...



524
525
# File 'lib/telnyx/models/message_send_whatsapp_response.rb', line 524

optional :type,
enum: -> { Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Interactive::Action::Card::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/telnyx/models/message_send_whatsapp_response.rb', line 600