class OpenapiClient::Err
Constants
- N0
- N1
- N10
- N2
- N3
- N4
- N5
- N6
- N7
- N8
- N9
- N999
Public Class 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 lib/openapi_client/models/err.rb, line 34 def self.build_from_hash(value) new.build_from_hash(value) end
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 lib/openapi_client/models/err.rb, line 41 def build_from_hash(value) constantValues = Err.constants.select { |c| Err::const_get(c) == value } raise "Invalid ENUM value #{value} for class #Err" if constantValues.empty? value end