Class: Courier::Models::JourneyTemplateSummary

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

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

#initialize(id:, created:, creator:, name:, state:, tags:, updated: nil, updater: nil) ⇒ Object

Summary fields of a journey-scoped notification template returned in list responses.



# File 'lib/courier/models/journey_template_summary.rb', line 46


Instance Attribute Details

#created ⇒ Integer



14
# File 'lib/courier/models/journey_template_summary.rb', line 14

required :created, Integer

#creator ⇒ String



19
# File 'lib/courier/models/journey_template_summary.rb', line 19

required :creator, String

#id ⇒ String



9
# File 'lib/courier/models/journey_template_summary.rb', line 9

required :id, String

#name ⇒ String



24
# File 'lib/courier/models/journey_template_summary.rb', line 24

required :name, String

#state ⇒ String



29
# File 'lib/courier/models/journey_template_summary.rb', line 29

required :state, String

#tags ⇒ Array<String>



34
# File 'lib/courier/models/journey_template_summary.rb', line 34

required :tags, Courier::Internal::Type::ArrayOf[String]

#updated ⇒ Integer?



39
# File 'lib/courier/models/journey_template_summary.rb', line 39

optional :updated, Integer

#updater ⇒ String?



44
# File 'lib/courier/models/journey_template_summary.rb', line 44

optional :updater, String

Instance Method Details

#to_hash ⇒ {



47
# File 'sig/courier/models/journey_template_summary.rbs', line 47

def to_hash: -> {