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

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

Defined Under Namespace

Modules: Type Classes: Button

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(action:, label:, name:) ⇒ Object

A button in an in app feed message.

Parameters:

  • 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.



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


Instance Attribute Details

#buttonsArray<Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock::Button>

A list of buttons in an in app feed message.



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

required :buttons,
-> { Knockapi::Internal::Type::ArrayOf[Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock::Button] }

#nameString

The name of the button set in a message in an app feed.

Returns:

  • (String)


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

required :name, String

#typeSymbol, Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock::Type

The type of block in a message in an app feed.



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

required :type,
enum: -> { Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock::Type }