Class: ThreeScaleToolbox::Commands::ImportCommand::OpenAPI::IssuerTypeTransformer
- Inherits:
-
Object
- Object
- ThreeScaleToolbox::Commands::ImportCommand::OpenAPI::IssuerTypeTransformer
- Defined in:
- lib/3scale_toolbox/commands/import_command/issuer_type_transformer.rb
Overview
Helper class to validate values for the oidc-issuer-type argument of the import openapi command
Instance Method Summary collapse
Instance Method Details
#call(issuer_type) ⇒ Object
7 8 9 10 11 |
# File 'lib/3scale_toolbox/commands/import_command/issuer_type_transformer.rb', line 7 def call(issuer_type) raise unless %w[rest keycloak].include?(issuer_type) issuer_type end |