Class: R2OAS::Schema::Generator
- Extended by:
- Forwardable
- Defined in:
- lib/r2-oas/schema/generator.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Generator
constructor
A new instance of Generator.
Constructor Details
#initialize(options = {}) ⇒ Generator
Returns a new instance of Generator.
13 14 15 16 17 18 19 20 |
# File 'lib/r2-oas/schema/generator.rb', line 13 def initialize( = {}) case ::R2OAS.version when :v3 @generator = V3::Generator.new() else raise NoImplementError, "Do not support version: #{::R2OAS.version}" end end |