Class: Courier::Models::JourneyTemplateCreateRequest::Notification::Content

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

See Also:

  • Courier::Models::JourneyTemplateCreateRequest::Notification#content

Defined Under Namespace

Modules: Scope, Version

Instance Attribute Summary collapse

Class Method 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

#initialize(elements:, version:, scope: nil) ⇒ Object



# File 'lib/courier/models/journey_template_create_request.rb', line 98

Instance Attribute Details

#elements ⇒ Array<Courier::Models::ElementalTextNodeWithType, Courier::Models::ElementalMetaNodeWithType, Courier::Models::ElementalChannelNodeWithType, Courier::Models::ElementalImageNodeWithType, Courier::Models::ElementalActionNodeWithType, Courier::Models::ElementalDividerNodeWithType, Courier::Models::ElementalQuoteNodeWithType, Courier::Models::ElementalHTMLNodeWithType>



86
# File 'lib/courier/models/journey_template_create_request.rb', line 86

required :elements, -> { Courier::Internal::Type::ArrayOf[union: Courier::ElementalNode] }

#scope ⇒ Symbol, ...



96
# File 'lib/courier/models/journey_template_create_request.rb', line 96

optional :scope, enum: -> { Courier::JourneyTemplateCreateRequest::Notification::Content::Scope }

#version ⇒ Symbol, Courier::Models::JourneyTemplateCreateRequest::Notification::Content::Version

Parameters:

  • value (Courier::Models::JourneyTemplateCreateRequest::Notification::Content::version)

Returns:



91
# File 'lib/courier/models/journey_template_create_request.rb', line 91

required :version, enum: -> { Courier::JourneyTemplateCreateRequest::Notification::Content::Version }

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/courier/models/journey_template_create_request.rb', line 109

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


108
# File 'sig/courier/models/journey_template_create_request.rbs', line 108

def to_hash: -> {