Class: R2OAS::Schema::Builder
- Extended by:
- Forwardable
- Defined in:
- lib/r2-oas/schema/builder.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Builder
constructor
A new instance of Builder.
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( = {}) case ::R2OAS.version when :v3 @builder = V3::Builder.new() else raise NoImplementError, "Do not support version: #{::R2OAS.version}" end end |