Class: OpenapiSdkGenerator::Generator
- Inherits:
-
Object
- Object
- OpenapiSdkGenerator::Generator
- Defined in:
- lib/openapi_sdk_generator/generator.rb
Direct Known Subclasses
OpenapiSdkGenerator::Generators::JavascriptGenerator, OpenapiSdkGenerator::Generators::RubyGenerator
Instance Attribute Summary collapse
-
#parser ⇒ Object
readonly
Returns the value of attribute parser.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(parser) ⇒ Generator
constructor
A new instance of Generator.
- #write_to_directory(output_dir) ⇒ Object
Constructor Details
#initialize(parser) ⇒ Generator
Returns a new instance of Generator.
5 6 7 |
# File 'lib/openapi_sdk_generator/generator.rb', line 5 def initialize(parser) @parser = parser end |
Instance Attribute Details
#parser ⇒ Object (readonly)
Returns the value of attribute parser.
3 4 5 |
# File 'lib/openapi_sdk_generator/generator.rb', line 3 def parser @parser end |
Instance Method Details
#generate ⇒ Object
9 10 11 |
# File 'lib/openapi_sdk_generator/generator.rb', line 9 def generate raise NotImplementedError, "Subclasses must implement #generate" end |
#write_to_directory(output_dir) ⇒ Object
13 14 15 |
# File 'lib/openapi_sdk_generator/generator.rb', line 13 def write_to_directory(output_dir) raise NotImplementedError, "Subclasses must implement #write_to_directory" end |