Class: Courier::Models::JourneyTemplateSummary

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

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.

Parameters:

  • id (String)
  • created (Integer)
  • creator (String)
  • name (String)
  • state (String)
  • tags (Array<String>)
  • updated (Integer) (defaults to: nil)
  • updater (String) (defaults to: nil)


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

Instance Attribute Details

#createdInteger

Returns:

  • (Integer)


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

required :created, Integer

#creatorString

Returns:

  • (String)


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

required :creator, String

#idString

Returns:

  • (String)


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

required :id, String

#nameString

Returns:

  • (String)


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

required :name, String

#stateString

Returns:

  • (String)


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

required :state, String

#tagsArray<String>

Returns:

  • (Array<String>)


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

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

#updatedInteger?

Returns:

  • (Integer, nil)


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

optional :updated, Integer

#updaterString?

Returns:

  • (String, nil)


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

optional :updater, String