Class: DaytonaApiClient::JobStatus
- Inherits:
-
Object
- Object
- DaytonaApiClient::JobStatus
- Defined in:
- lib/daytona_api_client/models/job_status.rb
Constant Summary collapse
- PENDING =
"PENDING".freeze
- IN_PROGRESS =
"IN_PROGRESS".freeze
- COMPLETED =
"COMPLETED".freeze
- FAILED =
"FAILED".freeze
- UNKNOWN_DEFAULT_OPEN_API =
"unknown_default_open_api".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
24 25 26 |
# File 'lib/daytona_api_client/models/job_status.rb', line 24 def self.all_vars @all_vars ||= [PENDING, IN_PROGRESS, COMPLETED, FAILED, UNKNOWN_DEFAULT_OPEN_API].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
31 32 33 |
# File 'lib/daytona_api_client/models/job_status.rb', line 31 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
38 39 40 41 |
# File 'lib/daytona_api_client/models/job_status.rb', line 38 def build_from_hash(value) return value if JobStatus.all_vars.include?(value) UNKNOWN_DEFAULT_OPEN_API end |