Class: Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedContentBlock

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

Defined Under Namespace

Modules: Type

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(content:, name:, rendered:, type:) ⇒ Object

A block in a message in an app feed.

Parameters:



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

Instance Attribute Details

#contentString

The content of the block in a message in an app feed.

Returns:

  • (String)


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

required :content, String

#nameString

The name of the block in a message in an app feed.

Returns:

  • (String)


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

required :name, String

#renderedString

The rendered HTML version of the content.

Returns:

  • (String)


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

required :rendered, String

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

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



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

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