Class: Telnyx::Models::MessageSendWhatsappParams::WhatsappMessage::Interactive::Action::Button
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::MessageSendWhatsappParams::WhatsappMessage::Interactive::Action::Button
- Defined in:
- lib/telnyx/models/message_send_whatsapp_params.rb
Defined Under Namespace
Instance Attribute Summary collapse
- #reply ⇒ Telnyx::Models::MessageSendWhatsappParams::WhatsappMessage::Interactive::Action::Button::Reply?
- #type ⇒ Symbol, ...
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
402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 |
# File 'lib/telnyx/models/message_send_whatsapp_params.rb', line 402 class Button < Telnyx::Internal::Type::BaseModel # @!attribute reply # # @return [Telnyx::Models::MessageSendWhatsappParams::WhatsappMessage::Interactive::Action::Button::Reply, nil] optional :reply, -> { Telnyx::MessageSendWhatsappParams::WhatsappMessage::Interactive::Action::Button::Reply } # @!attribute type # # @return [Symbol, Telnyx::Models::MessageSendWhatsappParams::WhatsappMessage::Interactive::Action::Button::Type, nil] optional :type, enum: -> { Telnyx::MessageSendWhatsappParams::WhatsappMessage::Interactive::Action::Button::Type } # @!method initialize(reply: nil, type: nil) # @param reply [Telnyx::Models::MessageSendWhatsappParams::WhatsappMessage::Interactive::Action::Button::Reply] # @param type [Symbol, Telnyx::Models::MessageSendWhatsappParams::WhatsappMessage::Interactive::Action::Button::Type] # @see Telnyx::Models::MessageSendWhatsappParams::WhatsappMessage::Interactive::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::MessageSendWhatsappParams::WhatsappMessage::Interactive::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::MessageSendWhatsappParams::WhatsappMessage::Interactive::Action::Button::Reply?
406 407 |
# File 'lib/telnyx/models/message_send_whatsapp_params.rb', line 406 optional :reply, -> { Telnyx::MessageSendWhatsappParams::WhatsappMessage::Interactive::Action::Button::Reply } |
#type ⇒ Symbol, ...
412 413 |
# File 'lib/telnyx/models/message_send_whatsapp_params.rb', line 412 optional :type, enum: -> { Telnyx::MessageSendWhatsappParams::WhatsappMessage::Interactive::Action::Button::Type } |