Class: R2OAS::Schema::Generator

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/r2-oas/schema/generator.rb

Instance Method Summary collapse

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(options = {})
  case ::R2OAS.version
  when :v3
    @generator = V3::Generator.new(options)
  else
    raise NoImplementError, "Do not support version: #{::R2OAS.version}"
  end
end