Sha256: e660bea6bf94d8f2a130a99b2dde29858ec1039560ce7d033ce1d9631a05c74a

Contents?: true

Size: 563 Bytes

Versions: 2

Compression:

Stored size: 563 Bytes

Contents

# frozen_string_literal: true

require 'r2-oas/dynamic/schema/v3/object/from_routes/hookable_base_object'

module R2OAS
  module Schema
    module V3
      class ExternalDocumentObject < R2OAS::Dynamic::Schema::V3::HookableBaseObject
        def to_doc
          execute_before_create
          create_doc
          execute_after_create
          doc
        end

        private

        def create_doc
          result = {
            'description' => '',
            'url' => ''
          }
          doc.merge!(result)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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