Class: Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageInAppFeedContent::Block::MessageInAppFeedButtonSetBlock::Button
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageInAppFeedContent::Block::MessageInAppFeedButtonSetBlock::Button
- Defined in:
- lib/knockapi/models/messages/batch_get_content_response.rb
Instance Attribute Summary collapse
-
#action ⇒ String
The action to take when the button is clicked.
-
#label ⇒ String
The label of the button.
-
#name ⇒ String
The name of the button.
Instance Method Summary collapse
-
#initialize(buttons:, name:, type:) ⇒ Object
constructor
A button set block in a message in an app feed.
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:, name:, type:) ⇒ Object
A button set block in a message in an app feed.
447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 |
# File 'lib/knockapi/models/messages/batch_get_content_response.rb', line 447 class Button < Knockapi::Internal::Type::BaseModel # @!attribute action # The action to take when the button is clicked. # # @return [String] required :action, String # @!attribute label # The label of the button. # # @return [String] required :label, String # @!attribute name # The name of the button. # # @return [String] required :name, String # @!method initialize(action:, label:, name:) # A button in an in app feed message. # # @param action [String] The action to take when the button is clicked. # # @param label [String] The label of the button. # # @param name [String] The name of the button. end |
Instance Attribute Details
#action ⇒ String
The action to take when the button is clicked.
452 |
# File 'lib/knockapi/models/messages/batch_get_content_response.rb', line 452 required :action, String |
#label ⇒ String
The label of the button.
458 |
# File 'lib/knockapi/models/messages/batch_get_content_response.rb', line 458 required :label, String |
#name ⇒ String
The name of the button.
464 |
# File 'lib/knockapi/models/messages/batch_get_content_response.rb', line 464 required :name, String |