Sha256: 1b2de87c02e23fa095076c9ad82c67e791c99da19f5bcce266d8f8db21b55040

Contents?: true

Size: 499 Bytes

Versions: 12

Compression:

Stored size: 499 Bytes

Contents

# frozen_string_literal: true

require 'forwardable'
require 'r2-oas/schema/v3/squeezer'

module R2OAS
  module Schema
    class Squeezer
      extend Forwardable

      def_delegators :@squeezer, :squeeze_docs

      def initialize(schema_data, options = {})
        case ::R2OAS.version
        when :v3
          @squeezer = V3::Squeezer.new(schema_data, options)
        else
          raise NoImplementError, "Do not support version: #{::R2OAS.version}"
        end
      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/squeezer.rb
r2-oas-0.4.1 lib/r2-oas/schema/squeezer.rb
r2-oas-0.4.0 lib/r2-oas/schema/squeezer.rb
r2-oas-0.3.4 lib/r2-oas/schema/squeezer.rb
r2-oas-0.3.3 lib/r2-oas/schema/squeezer.rb
r2-oas-0.3.2 lib/r2-oas/schema/squeezer.rb
r2-oas-0.3.1 lib/r2-oas/schema/squeezer.rb
r2-oas-0.3.0 lib/r2-oas/schema/squeezer.rb
r2-oas-0.2.0 lib/r2-oas/schema/squeezer.rb
r2-oas-0.1.3 lib/r2-oas/schema/squeezer.rb
r2-oas-0.1.2 lib/r2-oas/schema/squeezer.rb
r2-oas-0.1.0 lib/r2-oas/schema/squeezer.rb