Class: DocuSign_Rooms::ProductVersion
- Inherits:
-
Object
- Object
- DocuSign_Rooms::ProductVersion
- Defined in:
- lib/docusign_rooms/models/product_version.rb
Constant Summary collapse
- V5 =
'v5'.freeze
- V6 =
'v6'.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
23 24 25 26 27 |
# File 'lib/docusign_rooms/models/product_version.rb', line 23 def build_from_hash(value) constantValues = ProductVersion.constants.select { |c| ProductVersion::const_get(c) == value } raise "Invalid ENUM value #{value} for class #ProductVersion" if constantValues.empty? value end |