Class: Courier::Models::JourneyTemplateCreateRequest::Notification
- Inherits:
-
Internal::Type::BaseModel
show all
- Defined in:
- lib/courier/models/journey_template_create_request.rb,
sig/courier/models/journey_template_create_request.rbs
Overview
Defined Under Namespace
Classes: Brand, Content, Subscription
Instance Attribute Summary collapse
Class Method 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 Notification.
|
# File 'lib/courier/models/journey_template_create_request.rb', line 63
|
Instance Attribute Details
39
|
# File 'lib/courier/models/journey_template_create_request.rb', line 39
required :brand, -> { Courier::JourneyTemplateCreateRequest::Notification::Brand }, nil?: true
|
44
|
# File 'lib/courier/models/journey_template_create_request.rb', line 44
required :content, -> { Courier::JourneyTemplateCreateRequest::Notification::Content }
|
#name ⇒ String
49
|
# File 'lib/courier/models/journey_template_create_request.rb', line 49
required :name, String
|
54
55
56
|
# File 'lib/courier/models/journey_template_create_request.rb', line 54
required :subscription,
-> { Courier::JourneyTemplateCreateRequest::Notification::Subscription },
nil?: true
|
61
|
# File 'lib/courier/models/journey_template_create_request.rb', line 61
required :tags, Courier::Internal::Type::ArrayOf[String]
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/courier/models/journey_template_create_request.rb', line 103
|
Instance Method Details
#to_hash ⇒ { brand: Courier::JourneyTemplateCreateRequest::Notification::Brand?, content: Courier::JourneyTemplateCreateRequest::Notification::Content, name: String, subscription: Courier::JourneyTemplateCreateRequest::Notification::Subscription?, tags: ::Array[String] }
66
67
68
69
70
71
72
|
# File 'sig/courier/models/journey_template_create_request.rbs', line 66
def to_hash: -> {
brand: Courier::JourneyTemplateCreateRequest::Notification::Brand?,
content: Courier::JourneyTemplateCreateRequest::Notification::Content,
name: String,
subscription: Courier::JourneyTemplateCreateRequest::Notification::Subscription?,
tags: ::Array[String]
}
|