Method: OpenapiClient::ScopesResponse#build_from_hash

Defined in:
lib/openapi_client/models/scopes_response.rb

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



49
50
51
52
53
# File 'lib/openapi_client/models/scopes_response.rb', line 49

def build_from_hash(value)
  constantValues = ScopesResponse.constants.select { |c| ScopesResponse::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #ScopesResponse" if constantValues.empty?
  value
end