Class: R2OAS::Schema::PathItemFileManager

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of PathItemFileManager.



10
11
12
13
14
15
16
17
# File 'lib/r2-oas/schema/manager/file/path_item_file_manager.rb', line 10

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