Class: DocuSign_Maestro::DeploymentStatus

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

Constant Summary collapse

DEPLOYMENT_IN_PROGRESS =
'Deployment In Progress'.freeze
DEPLOYED =
'Deployed'.freeze
FAILED =
'Failed'.freeze
DELETE_IN_PROGRESS =
'Delete in Progress'.freeze
DELETED =
'Deleted'.freeze
NOT_DEPLOYED =
'Not Deployed'.freeze
UNPUBLISH_IN_PROGRESS =
'Unpublish in Progress'.freeze
UNPUBLISHED =
'Unpublished'.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



29
30
31
32
33
# File 'lib/docusign_maestro/models/deployment_status.rb', line 29

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