Class: DocuSign_Maestro::ParticipantKeys
- Inherits:
-
Object
- Object
- DocuSign_Maestro::ParticipantKeys
- 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
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
permalink #build_from_hash(value) ⇒ String
Builds the enum from string
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 |