Module: Knockapi::Models::Messages::BatchGetContentResponseItem::Data

Extended by:
Internal::Type::Union
Defined in:
lib/knockapi/models/messages/batch_get_content_response.rb,
sig/knockapi/models/messages/batch_get_content_response.rbs

Overview

Content data specific to the channel type.

See Also:

  • Knockapi::Models::Messages::BatchGetContentResponseItem#data

Defined Under Namespace

Classes: MessageChatContent, MessageEmailContent, MessageInAppFeedContent, MessagePushContent, MessageSMSContent

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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

Instance Method Details

#initialize(token:, _typename:, body:, title:, data: nil) ⇒ Object

Push channel data.

Parameters:

  • token (String)

    The device token to send the push notification to.

  • _typename (String)

    The typename of the schema.

  • body (String)

    The content body of the push notification.

  • title (String)

    The title of the push notification.

  • data (Hash{Symbol=>Object}, nil) (defaults to: nil)

    Additional data payload for the push notification.



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

#self?.variants::Array[Knockapi::Models::Messages::BatchGetContentResponseItem::data]

Returns:

  • (::Array[Knockapi::Models::Messages::BatchGetContentResponseItem::data])


389
# File 'sig/knockapi/models/messages/batch_get_content_response.rbs', line 389

def self?.variants: -> ::Array[Knockapi::Models::Messages::BatchGetContentResponseItem::data]