Class: Zavudev::Models::MessageContent::Button
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Zavudev::Models::MessageContent::Button
- Defined in:
- lib/zavudev/models/message_content.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(buttons: nil, contacts: nil, emoji: nil, filename: nil, latitude: nil, list_button: nil, location_address: nil, location_name: nil, longitude: nil, media_id: nil, media_url: nil, mime_type: nil, react_to_message_id: nil, sections: nil, template_id: nil, template_variables: nil) ⇒ Object
constructor
Content for non-text message types (WhatsApp and Telegram).
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(buttons: nil, contacts: nil, emoji: nil, filename: nil, latitude: nil, list_button: nil, location_address: nil, location_name: nil, longitude: nil, media_id: nil, media_url: nil, mime_type: nil, react_to_message_id: nil, sections: nil, template_id: nil, template_variables: nil) ⇒ Object
Content for non-text message types (WhatsApp and Telegram).
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
# File 'lib/zavudev/models/message_content.rb', line 137 class Button < Zavudev::Internal::Type::BaseModel # @!attribute id # # @return [String] required :id, String # @!attribute title # # @return [String] required :title, String # @!method initialize(id:, title:) # @param id [String] # @param title [String] end |
Instance Attribute Details
#id ⇒ String
141 |
# File 'lib/zavudev/models/message_content.rb', line 141 required :id, String |
#title ⇒ String
146 |
# File 'lib/zavudev/models/message_content.rb', line 146 required :title, String |