Method: OpenapiClient::ProviderResponse#build_from_hash

Defined in:
lib/openapi_client/models/provider_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



68
69
70
71
72
# File 'lib/openapi_client/models/provider_response.rb', line 68

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