Class: Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock::Button

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/knockapi/models/users/feed_list_items_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:



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

#actionString

The action to take when the button is clicked.

Returns:

  • (String)


252
# File 'lib/knockapi/models/users/feed_list_items_response.rb', line 252

required :action, String

#labelString

The label of the button.

Returns:

  • (String)


258
# File 'lib/knockapi/models/users/feed_list_items_response.rb', line 258

required :label, String

#nameString

The name of the button.

Returns:

  • (String)


264
# File 'lib/knockapi/models/users/feed_list_items_response.rb', line 264

required :name, String