Class: TurnkeyClient::ActivityStatus
- Inherits:
-
Object
- Object
- TurnkeyClient::ActivityStatus
- Defined in:
- lib/turnkey_client/models/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/activity_status.rb', line 26 def build_from_hash(value) constantValues = ActivityStatus.constants.select { |c| ActivityStatus::const_get(c) == value } raise "Invalid ENUM value #{value} for class #ActivityStatus" if constantValues.empty? value end |