Class: Telnyx::Models::WhatsappInteractive::Action::Card

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/whatsapp_interactive.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/whatsapp_interactive.rb', line 169

Instance Attribute Details

#actionTelnyx::Models::WhatsappInteractive::Action::Card::Action?



146
# File 'lib/telnyx/models/whatsapp_interactive.rb', line 146

optional :action, -> { Telnyx::WhatsappInteractive::Action::Card::Action }

#bodyTelnyx::Models::WhatsappInteractive::Action::Card::Body?



151
# File 'lib/telnyx/models/whatsapp_interactive.rb', line 151

optional :body, -> { Telnyx::WhatsappInteractive::Action::Card::Body }

#card_indexInteger?

unique index for each card (0-9)

Returns:

  • (Integer, nil)


157
# File 'lib/telnyx/models/whatsapp_interactive.rb', line 157

optional :card_index, Integer

#headerTelnyx::Models::WhatsappInteractive::Action::Card::Header?



162
# File 'lib/telnyx/models/whatsapp_interactive.rb', line 162

optional :header, -> { Telnyx::WhatsappInteractive::Action::Card::Header }

#typeSymbol, ...



167
# File 'lib/telnyx/models/whatsapp_interactive.rb', line 167

optional :type, enum: -> { Telnyx::WhatsappInteractive::Action::Card::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/telnyx/models/whatsapp_interactive.rb', line 241