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

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

Overview

Content data specific to the channel type.

See Also:

Defined Under Namespace

Classes: MessageChatContent, MessageEmailContent, MessageInAppFeedContent, MessagePushContent, MessageSMSContent

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, 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