Class: KrakendOpenAPI::OA3ToKrakendTransformer
- Inherits:
-
Object
- Object
- KrakendOpenAPI::OA3ToKrakendTransformer
- Defined in:
- lib/transformers/oa3_transformer.rb
Overview
Transforms OpenAPI paths to KrakenD endpoints
Instance Method Summary collapse
-
#initialize(paths, importer_config) ⇒ OA3ToKrakendTransformer
constructor
A new instance of OA3ToKrakendTransformer.
- #transform_paths ⇒ Object
Constructor Details
#initialize(paths, importer_config) ⇒ OA3ToKrakendTransformer
Returns a new instance of OA3ToKrakendTransformer.
8 9 10 11 |
# File 'lib/transformers/oa3_transformer.rb', line 8 def initialize(paths, importer_config) @paths = paths @importer_config = importer_config end |
Instance Method Details
#transform_paths ⇒ Object
13 14 15 |
# File 'lib/transformers/oa3_transformer.rb', line 13 def transform_paths @paths.map { |path, methods| transform_path(path, methods) }.flatten end |