Class: R2OAS::Schema::Builder

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

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Builder

Returns a new instance of Builder.



13
14
15
16
17
18
19
20
# File 'lib/r2-oas/schema/builder.rb', line 13

def initialize(options = {})
  case ::R2OAS.version
  when :v3
    @builder = V3::Builder.new(options)
  else
    raise NoImplementError, "Do not support version: #{::R2OAS.version}"
  end
end