Class: R2OAS::Schema::V3::PathGenerator
- Inherits:
-
BaseGenerator
- Object
- Base
- Base
- Base
- BaseGenerator
- R2OAS::Schema::V3::PathGenerator
- Defined in:
- lib/r2-oas/schema/v3/generator/path_generator.rb
Constant Summary
Constants inherited from Base
Base::SUPPORT_COMPONENTS_OBJECTS
Instance Method Summary collapse
- #generate_docs ⇒ Object
-
#initialize(schema_data = {}, options = {}) ⇒ PathGenerator
constructor
A new instance of PathGenerator.
Methods included from R2OAS::Sortable
Methods inherited from Base
Constructor Details
#initialize(schema_data = {}, options = {}) ⇒ PathGenerator
Returns a new instance of PathGenerator.
12 13 14 15 16 17 |
# File 'lib/r2-oas/schema/v3/generator/path_generator.rb', line 12 def initialize(schema_data = {}, = {}) super() sorted_schema_data = deep_sort(schema_data, 'paths') @paths = sorted_schema_data['paths'] @glob_schema_paths = create_glob_paths_paths end |
Instance Method Details
#generate_docs ⇒ Object
19 20 21 22 |
# File 'lib/r2-oas/schema/v3/generator/path_generator.rb', line 19 def generate_docs logger.info ' <From routes data>' generate_docs_from_routes_data end |