Sha256: 53ef1c019c326de98afae4e9f146b7da21fd3395d521fdda9a441a6a746b01e7

Contents?: true

Size: 438 Bytes

Versions: 3

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true

require_relative 'base_object'

module R2OAS
  module Schema
    module V3
      module FromFiles
        class ExternalDocumentObject < BaseObject
          def initialize(doc, opts = {})
            super(opts)
            @doc = doc
          end

          def to_doc
            execute_transform_plugins(:external_document, @doc)
            @doc
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
r2-oas-0.5.0 lib/r2-oas/schema/v3/object/from_files/external_document_object.rb
r2-oas-0.4.1 lib/r2-oas/schema/v3/object/from_files/external_document_object.rb
r2-oas-0.4.0 lib/r2-oas/schema/v3/object/from_files/external_document_object.rb