Sha256: 3baa056be7ee74c8a09dd88c1b808630289c46f7c911f11badacf34878fd986b

Contents?: true

Size: 531 Bytes

Versions: 12

Compression:

Stored size: 531 Bytes

Contents

# frozen_string_literal: true

module R2OAS
  module Schema
    class PathItemFileManager
      extend Forwardable

      def_delegators :@manager, :skip_save?, :descendants_paths, :descendants_ref_paths

      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

      class << self
        alias build new
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
r2-oas-0.5.0 lib/r2-oas/schema/manager/file/path_item_file_manager.rb
r2-oas-0.4.1 lib/r2-oas/schema/manager/file/path_item_file_manager.rb
r2-oas-0.4.0 lib/r2-oas/schema/manager/file/path_item_file_manager.rb
r2-oas-0.3.4 lib/r2-oas/schema/manager/file/path_item_file_manager.rb
r2-oas-0.3.3 lib/r2-oas/schema/manager/file/path_item_file_manager.rb
r2-oas-0.3.2 lib/r2-oas/schema/manager/file/path_item_file_manager.rb
r2-oas-0.3.1 lib/r2-oas/schema/manager/file/path_item_file_manager.rb
r2-oas-0.3.0 lib/r2-oas/schema/manager/file/path_item_file_manager.rb
r2-oas-0.2.0 lib/r2-oas/schema/manager/file/path_item_file_manager.rb
r2-oas-0.1.3 lib/r2-oas/schema/manager/file/path_item_file_manager.rb
r2-oas-0.1.2 lib/r2-oas/schema/manager/file/path_item_file_manager.rb
r2-oas-0.1.0 lib/r2-oas/schema/manager/file/path_item_file_manager.rb