Class: Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock::Button
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock::Button
- Defined in:
- lib/knockapi/models/users/feed_list_items_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.
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 |
# File 'lib/knockapi/models/users/feed_list_items_response.rb', line 247 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.
252 |
# File 'lib/knockapi/models/users/feed_list_items_response.rb', line 252 required :action, String |
#label ⇒ String
The label of the button.
258 |
# File 'lib/knockapi/models/users/feed_list_items_response.rb', line 258 required :label, String |
#name ⇒ String
The name of the button.
264 |
# File 'lib/knockapi/models/users/feed_list_items_response.rb', line 264 required :name, String |