Class: Telnyx::Models::WhatsappInteractive::Action::Button
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::WhatsappInteractive::Action::Button
- Defined in:
- lib/telnyx/models/whatsapp_interactive.rb
Defined Under Namespace
Instance Attribute Summary collapse
Instance Method Summary collapse
- #initialize(id: nil, title: nil) ⇒ Object constructor
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(id: nil, title: nil) ⇒ Object
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/telnyx/models/whatsapp_interactive.rb', line 96 class Button < Telnyx::Internal::Type::BaseModel # @!attribute reply # # @return [Telnyx::Models::WhatsappInteractive::Action::Button::Reply, nil] optional :reply, -> { Telnyx::WhatsappInteractive::Action::Button::Reply } # @!attribute type # # @return [Symbol, Telnyx::Models::WhatsappInteractive::Action::Button::Type, nil] optional :type, enum: -> { Telnyx::WhatsappInteractive::Action::Button::Type } # @!method initialize(reply: nil, type: nil) # @param reply [Telnyx::Models::WhatsappInteractive::Action::Button::Reply] # @param type [Symbol, Telnyx::Models::WhatsappInteractive::Action::Button::Type] # @see Telnyx::Models::WhatsappInteractive::Action::Button#reply class Reply < Telnyx::Internal::Type::BaseModel # @!attribute id # unique identifier for each button, 256 character maximum # # @return [String, nil] optional :id, String # @!attribute title # button label, 20 character maximum # # @return [String, nil] optional :title, String # @!method initialize(id: nil, title: nil) # @param id [String] unique identifier for each button, 256 character maximum # # @param title [String] button label, 20 character maximum end # @see Telnyx::Models::WhatsappInteractive::Action::Button#type module Type extend Telnyx::Internal::Type::Enum REPLY = :reply # @!method self.values # @return [Array<Symbol>] end end |
Instance Attribute Details
#reply ⇒ Telnyx::Models::WhatsappInteractive::Action::Button::Reply?
100 |
# File 'lib/telnyx/models/whatsapp_interactive.rb', line 100 optional :reply, -> { Telnyx::WhatsappInteractive::Action::Button::Reply } |
#type ⇒ Symbol, ...
105 |
# File 'lib/telnyx/models/whatsapp_interactive.rb', line 105 optional :type, enum: -> { Telnyx::WhatsappInteractive::Action::Button::Type } |