Class: Telnyx::Models::WhatsappInteractive::Action::Button
Defined Under Namespace
Modules: Type
Classes: Reply
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#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
optional :reply, -> { Telnyx::WhatsappInteractive::Action::Button::Reply }
optional :type, enum: -> { Telnyx::WhatsappInteractive::Action::Button::Type }
class Reply < Telnyx::Internal::Type::BaseModel
optional :id, String
optional :title, String
end
module Type
extend Telnyx::Internal::Type::Enum
REPLY = :reply
end
end
|
Instance Attribute Details
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 }
|
Instance Method Details
#to_hash ⇒ {
165
|
# File 'sig/telnyx/models/whatsapp_interactive.rbs', line 165
def to_hash: -> {
|