Class: DocuSign_Maestro::DSWorkflowComparisonOperatorTypes

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

Constant Summary collapse

CONTAINS =
'Contains'.freeze
NOT_CONTAINS =
'NotContains'.freeze
EQUAL =
'Equal'.freeze
NOT_EQUAL =
'NotEqual'.freeze
GREATER_THAN =
'GreaterThan'.freeze
GREATER_THAN_OR_EQUAL =
'GreaterThanOrEqual'.freeze
LESS_THAN =
'LessThan'.freeze
LESS_THAN_OR_EQUAL =
'LessThanOrEqual'.freeze
STARTS_WITH =
'StartsWith'.freeze
NOT_STARTS_WITH =
'NotStartsWith'.freeze
ENDS_WITH =
'EndsWith'.freeze
NOT_ENDS_WITH =
'NotEndsWith'.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



33
34
35
36
37
# File 'lib/docusign_maestro/models/ds_workflow_comparison_operator_types.rb', line 33

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