Class: Courier::Models::JourneyRunListItem

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/courier/models/journey_run_list_item.rb,
sig/courier/models/journey_run_list_item.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(run_id:, source:, created_at: nil, status: nil, template_id: nil) ⇒ Object

A Journey run as it appears in a list response, without updated_at.

Parameters:

  • run_id (String)

    A unique identifier representing the run.

  • source (Array<String>)

    Internal provenance strings describing what started the run. Diagnostic only.

  • created_at (String) (defaults to: nil)

    When the run started, as an ISO 8601 timestamp.

  • status (String) (defaults to: nil)

    The state of the run. See JourneyRun.status for the values it takes.

  • template_id (String) (defaults to: nil)

    The id of the Journey this run belongs to.



# File 'lib/courier/models/journey_run_list_item.rb', line 36

Instance Attribute Details

#created_atString?

When the run started, as an ISO 8601 timestamp.

Parameters:

  • (String)

Returns:

  • (String, nil)


22
# File 'lib/courier/models/journey_run_list_item.rb', line 22

optional :created_at, String

#run_idString

A unique identifier representing the run.

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/courier/models/journey_run_list_item.rb', line 10

required :run_id, String

#sourceArray<String>

Internal provenance strings describing what started the run. Diagnostic only.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


16
# File 'lib/courier/models/journey_run_list_item.rb', line 16

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

#statusString?

The state of the run. See JourneyRun.status for the values it takes.

Parameters:

  • (String)

Returns:

  • (String, nil)


28
# File 'lib/courier/models/journey_run_list_item.rb', line 28

optional :status, String

#template_idString?

The id of the Journey this run belongs to.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :template_id, String

Instance Method Details

#to_hash{

Returns:

  • ({)


37
# File 'sig/courier/models/journey_run_list_item.rbs', line 37

def to_hash: -> {