Class: R2OAS::Schema::FileManager

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

Instance Method Summary collapse

Constructor Details

#initialize(path, path_type = :ref) ⇒ FileManager

Returns a new instance of FileManager.



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

def initialize(path, path_type = :ref)
  case ::R2OAS.version
  when :v3
    @manager = V3::FileManager.new(path, path_type)
  else
    raise "Do not support version: #{::R2OAS.version}"
  end
end