Method: OpenapiClient::ProviderRequest#build_from_hash

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

#build_from_hash(value) ⇒ String

Builds the enum from string



76
77
78
79
80
# File 'lib/openapi_client/models/provider_request.rb', line 76

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