Class: DocuSign_Maestro::ReplicationStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/docusign_maestro/models/replication_status.rb

Constant Summary collapse

DEPLOY_REPLICATION_IN_PROGRESS =
'Deploy Replication In Progress'.freeze
DEPLOY_REPLICATED =
'Deploy Replicated'.freeze
DEPLOY_REPLICATION_FAILED =
'Deploy Replication Failed'.freeze
NOT_REPLICATED =
'Not Replicated'.freeze
DELETE_REPLICATION_IN_PROGRESS =
'Delete Replication in Progress'.freeze
DELETE_REPLICATED =
'Delete Replicated'.freeze
DELETE_REPLICATION_FAILED =
'Delete Replication Failed'.freeze
UNPUBLISH_REPLICATION_IN_PROGRESS =
'Unpublish replication in Progress'.freeze
UNPUBLISH_REPLICATED =
'Unpublish Replicated'.freeze
UNPUBLISH_REPLICATION_FAILED =
'Unpublish Replication Failed'.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



31
32
33
34
35
# File 'lib/docusign_maestro/models/replication_status.rb', line 31

def build_from_hash(value)
  constantValues = ReplicationStatus.constants.select { |c| ReplicationStatus::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #ReplicationStatus" if constantValues.empty?
  value
end