Class: Courier::Models::NotificationGetContent::Channel
Defined Under Namespace
Classes: Content, Locale
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
#initialize(subject: nil, title: nil) ⇒ Channel
Returns a new instance of Channel.
|
# File 'lib/courier/models/notification_get_content.rb', line 181
|
Instance Attribute Details
#checksum ⇒ String?
162
|
# File 'lib/courier/models/notification_get_content.rb', line 162
optional :checksum, String, nil?: true
|
167
|
# File 'lib/courier/models/notification_get_content.rb', line 167
optional :content, -> { Courier::NotificationGetContent::Channel::Content }, nil?: true
|
#id ⇒ String
157
|
# File 'lib/courier/models/notification_get_content.rb', line 157
required :id, String
|
172
173
174
|
# File 'lib/courier/models/notification_get_content.rb', line 172
optional :locales,
-> { Courier::Internal::Type::HashOf[Courier::NotificationGetContent::Channel::Locale] },
nil?: true
|
#type ⇒ String?
179
|
# File 'lib/courier/models/notification_get_content.rb', line 179
optional :type, String, nil?: true
|
Instance Method Details
#to_hash ⇒ { id: String, checksum: String?, content: Courier::NotificationGetContent::Channel::Content?, locales: ::Hash[Symbol, Courier::NotificationGetContent::Channel::Locale]?, type: String? }
177
178
179
180
181
182
183
|
# File 'sig/courier/models/notification_get_content.rbs', line 177
def to_hash: -> {
id: String,
checksum: String?,
content: Courier::NotificationGetContent::Channel::Content?,
locales: ::Hash[Symbol, Courier::NotificationGetContent::Channel::Locale]?,
type: String?
}
|