Class: Deeprails::Models::WorkflowEventResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/deeprails/models/workflow_event_response.rb

Overview

Defined Under Namespace

Modules: Status

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(created_at:, event_id:, status:, workflow_id:) ⇒ Object

Parameters:

  • created_at (Time)

    The time the event was created in UTC.

  • event_id (String)

    A unique workflow event ID.

  • status (Symbol, Deeprails::Models::WorkflowEventResponse::Status)

    Status of the event.

  • workflow_id (String)

    Workflow ID associated with the event.



# File 'lib/deeprails/models/workflow_event_response.rb', line 31


Instance Attribute Details

#created_atTime

The time the event was created in UTC.

Returns:

  • (Time)


11
# File 'lib/deeprails/models/workflow_event_response.rb', line 11

required :created_at, Time

#event_idString

A unique workflow event ID.

Returns:

  • (String)


17
# File 'lib/deeprails/models/workflow_event_response.rb', line 17

required :event_id, String

#statusSymbol, Deeprails::Models::WorkflowEventResponse::Status

Status of the event.



23
# File 'lib/deeprails/models/workflow_event_response.rb', line 23

required :status, enum: -> { Deeprails::WorkflowEventResponse::Status }

#workflow_idString

Workflow ID associated with the event.

Returns:

  • (String)


29
# File 'lib/deeprails/models/workflow_event_response.rb', line 29

required :workflow_id, String