class asposeemailcloud::ProtocolType
Public Instance Methods
build_from_hash(value)
click to toggle source
Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value
# File src/asposeemailcloud/models/protocol_type.rb, line 27 def build_from_hash(value) consantValues = ProtocolType.constants.select{|c| c.to_s == value} raise "Invalid ENUM value #{value} for class #ProtocolType" if consantValues.empty? value end