Class: Courier::Models::SendMessageParams::Message::Metadata
Overview
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
Returns a new instance of Metadata.
202
203
204
205
206
207
|
# File 'sig/courier/models/send_message_params.rbs', line 202
def initialize: (
?event: String?,
?tags: ::Array[String]?,
?trace_id: String?,
?utm: Courier::Utm?
) -> void
|
Instance Attribute Details
#event ⇒ String?
239
|
# File 'lib/courier/models/send_message_params.rb', line 239
optional :event, String, nil?: true
|
244
|
# File 'lib/courier/models/send_message_params.rb', line 244
optional :tags, Courier::Internal::Type::ArrayOf[String], nil?: true
|
#trace_id ⇒ String?
249
|
# File 'lib/courier/models/send_message_params.rb', line 249
optional :trace_id, String, nil?: true
|
254
|
# File 'lib/courier/models/send_message_params.rb', line 254
optional :utm, -> { Courier::Utm }, nil?: true
|
Instance Method Details
#to_hash ⇒ { event: String?, tags: ::Array[String]?, trace_id: String?, utm: Courier::Utm? }
209
210
211
212
213
214
|
# File 'sig/courier/models/send_message_params.rbs', line 209
def to_hash: -> {
event: String?,
tags: ::Array[String]?,
trace_id: String?,
utm: Courier::Utm?
}
|