Class: DocuSign_Maestro::WorkflowMetadataStatus

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

Constant Summary collapse

ACTIVE =
'active'.freeze
INACTIVE =
'inactive'.freeze
PUBLISHING =
'publishing'.freeze
UNPUBLISHING =
'unpublishing'.freeze
ARCHIVED =
'archived'.freeze
ARCHIVING =
'archiving'.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



27
28
29
30
31
# File 'lib/docusign_maestro/models/workflow_metadata_status.rb', line 27

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