Class: TurnkeyClient::V1ActivityStatus
- Inherits:
-
Object
- Object
- TurnkeyClient::V1ActivityStatus
- Defined in:
- lib/turnkey_client/models/v1_activity_status.rb
Constant Summary collapse
- CREATED =
'ACTIVITY_STATUS_CREATED'.freeze
- PENDING =
'ACTIVITY_STATUS_PENDING'.freeze
- COMPLETED =
'ACTIVITY_STATUS_COMPLETED'.freeze
- FAILED =
'ACTIVITY_STATUS_FAILED'.freeze
- CONSENSUS_NEEDED =
'ACTIVITY_STATUS_CONSENSUS_NEEDED'.freeze
- REJECTED =
'ACTIVITY_STATUS_REJECTED'.freeze
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
26 27 28 29 30 |
# File 'lib/turnkey_client/models/v1_activity_status.rb', line 26 def build_from_hash(value) constantValues = V1ActivityStatus.constants.select { |c| V1ActivityStatus::const_get(c) == value } raise "Invalid ENUM value #{value} for class #V1ActivityStatus" if constantValues.empty? value end |