Class: Courier::Models::JourneyTemplateGetResponse

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

Defined Under Namespace

Modules: State Classes: Brand, Content, Subscription

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(id:) ⇒ Object

Parameters:

  • id (String)


# File 'lib/courier/models/journey_template_get_response.rb', line 61

Instance Attribute Details

#brandCourier::Models::JourneyTemplateGetResponse::Brand?



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

required :brand, -> { Courier::JourneyTemplateGetResponse::Brand }, nil?: true

#contentCourier::Models::JourneyTemplateGetResponse::Content



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

required :content, -> { Courier::JourneyTemplateGetResponse::Content }

#createdInteger

Returns:

  • (Integer)


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

required :created, Integer

#creatorString

Returns:

  • (String)


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

required :creator, String

#idString

Returns:

  • (String)


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

required :id, String

#nameString

Returns:

  • (String)


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

required :name, String

#stateSymbol, Courier::Models::JourneyTemplateGetResponse::State



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

required :state, enum: -> { Courier::JourneyTemplateGetResponse::State }

#subscriptionCourier::Models::JourneyTemplateGetResponse::Subscription?



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

required :subscription, -> { Courier::JourneyTemplateGetResponse::Subscription }, nil?: true

#tagsArray<String>

Returns:

  • (Array<String>)


49
# File 'lib/courier/models/journey_template_get_response.rb', line 49

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

#updatedInteger?

Returns:

  • (Integer, nil)


54
# File 'lib/courier/models/journey_template_get_response.rb', line 54

optional :updated, Integer

#updaterString?

Returns:

  • (String, nil)


59
# File 'lib/courier/models/journey_template_get_response.rb', line 59

optional :updater, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/courier/models/journey_template_get_response.rb', line 126