Class: DocuSign_Maestro::ParticipantKeys

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

Constant Summary collapse

PARTICIPANT_EMAIL =
'participantEmail'.freeze
PARTICIPANT_FIRST_NAME =
'participantFirstName'.freeze
PARTICIPANT_LAST_NAME =
'participantLastName'.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

[View source]

24
25
26
27
28
# File 'lib/docusign_maestro/models/participant_keys.rb', line 24

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