Sha256: 8fe907301d6f827773cada0599fd9e80dea601f924a4b0521ada90b2577979ab
Contents?: true
Size: 979 Bytes
Versions: 4
Compression:
Stored size: 979 Bytes
Contents
=begin #Web Forms API version 1.1 #The Web Forms API facilitates generating semantic HTML forms around everyday contracts. OpenAPI spec version: 1.1.0 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git =end require 'date' module DocuSign_WebForms class WebFormComponentType CHECKBOX_GROUP = 'CheckboxGroup'.freeze DATE = 'Date'.freeze EMAIL = 'Email'.freeze NUMBER = 'Number'.freeze RADIO_BUTTON_GROUP = 'RadioButtonGroup'.freeze SELECT = 'Select'.freeze TEXT_BOX = 'TextBox'.freeze # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) constantValues = WebFormComponentType.constants.select { |c| WebFormComponentType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #WebFormComponentType" if constantValues.empty? value end end end
Version data entries
4 entries across 4 versions & 1 rubygems