Class: Knockapi::Models::MessageContents::Data::MessageChatContent::Template

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/knockapi/models/message_contents.rb,
sig/knockapi/models/message_contents.rbs

Overview

See Also:

  • Knockapi::Models::MessageContents::Data::MessageChatContent#template

Defined Under Namespace

Classes: Block

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 ⇒ Object



198
# File 'sig/knockapi/models/message_contents.rbs', line 198

def initialize: (

Instance Attribute Details

#blocks ⇒ Array<Knockapi::Models::MessageContents::Data::MessageChatContent::Template::Block>?

The blocks of the message in a chat.

Parameters:

  • value (::Array[Knockapi::MessageContents::Data::MessageChatContent::Template::Block], nil)

Returns:



256
257
258
259
260
# File 'lib/knockapi/models/message_contents.rb', line 256

optional :blocks,
-> {
  Knockapi::Internal::Type::ArrayOf[Knockapi::MessageContents::Data::MessageChatContent::Template::Block]
},
nil?: true

#json_content ⇒ Hash{Symbol=>Object}?

The JSON content of the message.

Parameters:

  • value (::Hash[Symbol, top], nil)

Returns:



266
267
268
# File 'lib/knockapi/models/message_contents.rb', line 266

optional :json_content,
Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown],
nil?: true

#summary ⇒ String?

The summary of the chat message.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


274
# File 'lib/knockapi/models/message_contents.rb', line 274

optional :summary, String, nil?: true

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


204
# File 'sig/knockapi/models/message_contents.rbs', line 204

def to_hash: -> {