Class: R2OAS::Schema::V3::BaseGenerator

Inherits:
Base show all
Includes:
R2OAS::Sortable
Defined in:
lib/r2-oas/schema/v3/generator/base_generator.rb

Constant Summary

Constants inherited from Base

R2OAS::Schema::V3::Base::SUPPORT_COMPONENTS_OBJECTS

Instance Method Summary collapse

Methods included from R2OAS::Sortable

#deep_sort

Methods inherited from Base

#support_components_objects

Constructor Details

#initialize(options = {}) ⇒ BaseGenerator

Returns a new instance of BaseGenerator.



15
16
17
18
19
20
21
22
23
24
# File 'lib/r2-oas/schema/v3/generator/base_generator.rb', line 15

def initialize(options = {})
  super

  options.keys.each do |key|
    send("#{key}=", options[key])
  end

  @store = ::R2OAS::Store.create(:schema)
  @glob_schema_paths = create_glob_schema_paths
end