Class: Courier::Models::SendMessageParams::Message::Preferences

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

Overview

See Also:

  • Courier::Models::SendMessageParams::Message#preferences

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

#initializePreferences

Returns a new instance of Preferences.

Parameters:

  • subscription_topic_id: (String)


206
# File 'sig/courier/models/send_message_params.rbs', line 206

def initialize: (subscription_topic_id: String) -> void

Instance Attribute Details

#subscription_topic_idString

The subscription topic to apply to the message.

Parameters:

  • value (String)

Returns:

  • (String)


255
# File 'lib/courier/models/send_message_params.rb', line 255

required :subscription_topic_id, String

Instance Method Details

#to_hash{ subscription_topic_id: String }

Returns:

  • ({ subscription_topic_id: String })


208
# File 'sig/courier/models/send_message_params.rbs', line 208

def to_hash: -> { subscription_topic_id: String }