Sha256: c6009b843d4639e3a1f3a7413b4b3a3b9d57829b71d3d947c7d6b271fde66c6a

Contents?: true

Size: 945 Bytes

Versions: 4

Compression:

Stored size: 945 Bytes

Contents

=begin
#API Reference

#Review our [API Introduction](../api-introduction) to get started.

OpenAPI spec version: 1.0

Generated by: https://github.com/swagger-api/swagger-codegen.git
=end

require 'date'

module TurnkeyClient
  class ActivityStatus
    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

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    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
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
turnkey_client-0.0.9 lib/turnkey_client/models/activity_status.rb
turnkey_client-0.0.8 lib/turnkey_client/models/activity_status.rb
turnkey_client-0.0.7 lib/turnkey_client/models/activity_status.rb
turnkey_client-0.0.4 lib/turnkey_client/models/activity_status.rb