Class: DocuSign_WebForms::SendOption
- Inherits:
-
Object
- Object
- DocuSign_WebForms::SendOption
- Defined in:
- lib/docusign_webforms/models/send_option.rb
Constant Summary collapse
- NOW =
'now'.freeze
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
22 23 24 25 26 |
# File 'lib/docusign_webforms/models/send_option.rb', line 22 def build_from_hash(value) constantValues = SendOption.constants.select { |c| SendOption::const_get(c) == value } raise "Invalid ENUM value #{value} for class #SendOption" if constantValues.empty? value end |