Sha256: e79e57428f90156fde26c019064ad76666959581fb9758b4f8a6966fe6696f5a

Contents?: true

Size: 402 Bytes

Versions: 11

Compression:

Stored size: 402 Bytes

Contents

# frozen_string_literal: true

require_relative '../schemas/ref_schema'

module Meta
  module JsonSchema
    class RefSchemaBuilder
      def initialize(options)
        options = options.dup
        @ref_schema_builder = options.delete(:ref)
        @base_options = options
      end

      def to_schema
        RefSchema.new(@ref_schema_builder.to_schema, @base_options)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
meta-api-0.2.0 lib//meta/json_schema/builders/ref_schema_builder.rb
meta-api-0.1.2 lib//meta/json_schema/builders/ref_schema_builder.rb
meta-api-0.1.1 lib//meta/json_schema/builders/ref_schema_builder.rb
meta-api-0.1.0 lib//meta/json_schema/builders/ref_schema_builder.rb
meta-api-0.0.9 lib//meta/json_schema/builders/ref_schema_builder.rb
meta-api-0.0.8 lib/meta/json_schema/builders/ref_schema_builder.rb
meta-api-0.0.7 lib/meta/json_schema/builders/ref_schema_builder.rb
meta-api-0.0.6 lib/meta/json_schema/builders/ref_schema_builder.rb
meta-api-0.0.5 lib/meta/json_schema/builders/ref_schema_builder.rb
meta-api-0.0.4 lib/meta/json_schema/builders/ref_schema_builder.rb
meta-api-0.0.3 lib/meta/json_schema/builders/ref_schema_builder.rb