Class: TurnkeyClient::ActivityStatus

Inherits:
Object
  • Object
show all
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

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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