Class: Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageInAppFeedContent::Block::MessageInAppFeedButtonSetBlock

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/knockapi/models/messages/batch_get_content_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/messages/batch_get_content_response.rb', line 466

Instance Attribute Details

#buttonsArray<Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageInAppFeedContent::Block::MessageInAppFeedButtonSetBlock::Button>

A list of buttons in an in app feed message.



418
419
420
421
422
423
# File 'lib/knockapi/models/messages/batch_get_content_response.rb', line 418

required :buttons,
-> do
  Knockapi::Internal::Type::ArrayOf[
    Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageInAppFeedContent::Block::MessageInAppFeedButtonSetBlock::Button
  ]
end

#nameString

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

Returns:

  • (String)


429
# File 'lib/knockapi/models/messages/batch_get_content_response.rb', line 429

required :name, String

#typeSymbol, Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageInAppFeedContent::Block::MessageInAppFeedButtonSetBlock::Type

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



435
436
# File 'lib/knockapi/models/messages/batch_get_content_response.rb', line 435

required :type,
enum: -> { Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageInAppFeedContent::Block::MessageInAppFeedButtonSetBlock::Type }