Class: Trycourier::Models::AutomationTemplate

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/trycourier/models/automation_template.rb

Defined Under Namespace

Modules: Version

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:, name:, version:, created_at: nil, updated_at: nil) ⇒ Object

Parameters:

  • id (String)

    The unique identifier of the automation template.

  • name (String)

    The name of the automation template.

  • version (Symbol, Trycourier::Models::AutomationTemplate::Version)

    The version of the template published, draft.

  • created_at (Time) (defaults to: nil)

    ISO 8601 timestamp when the template was created.

  • updated_at (Time) (defaults to: nil)

    ISO 8601 timestamp when the template was last updated.



# File 'lib/trycourier/models/automation_template.rb', line 36


Instance Attribute Details

#created_atTime?

ISO 8601 timestamp when the template was created.

Returns:

  • (Time, nil)


28
# File 'lib/trycourier/models/automation_template.rb', line 28

optional :created_at, Time, api_name: :createdAt

#idString

The unique identifier of the automation template.

Returns:

  • (String)


10
# File 'lib/trycourier/models/automation_template.rb', line 10

required :id, String

#nameString

The name of the automation template.

Returns:

  • (String)


16
# File 'lib/trycourier/models/automation_template.rb', line 16

required :name, String

#updated_atTime?

ISO 8601 timestamp when the template was last updated.

Returns:

  • (Time, nil)


34
# File 'lib/trycourier/models/automation_template.rb', line 34

optional :updated_at, Time, api_name: :updatedAt

#versionSymbol, Trycourier::Models::AutomationTemplate::Version

The version of the template published, draft.



22
# File 'lib/trycourier/models/automation_template.rb', line 22

required :version, enum: -> { Trycourier::AutomationTemplate::Version }