Class: CloudReactorAPIClient::StopReasonEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudreactor_api_client/models/stop_reason_enum.rb

Constant Summary collapse

MANUAL =
"MANUAL".freeze
MAX_EXECUTION_TIME_EXCEEDED =
"MAX_EXECUTION_TIME_EXCEEDED".freeze
MISSING_HEARTBEAT =
"MISSING_HEARTBEAT".freeze
FAILED_TO_START =
"FAILED_TO_START".freeze
WORKFLOW_EXECUTION_STOPPED =
"WORKFLOW_EXECUTION_STOPPED".freeze
WORKFLOW_EXECUTION_RETRIED =
"WORKFLOW_EXECUTION_RETRIED".freeze
WORKFLOW_EXECUTION_TIMED_OUT =
"WORKFLOW_EXECUTION_TIMED_OUT".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.build_from_hash(value) ⇒ String

Builds the enum from string



29
30
31
# File 'lib/cloudreactor_api_client/models/stop_reason_enum.rb', line 29

def self.build_from_hash(value)
  new.build_from_hash(value)
end

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string



36
37
38
39
40
# File 'lib/cloudreactor_api_client/models/stop_reason_enum.rb', line 36

def build_from_hash(value)
  constantValues = StopReasonEnum.constants.select { |c| StopReasonEnum::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #StopReasonEnum" if constantValues.empty?
  value
end