Sha256: db5e5a824ca185a2651b8cca0fc9d461b60fc49990473e2320c68348ce2c774d

Contents?: true

Size: 466 Bytes

Versions: 12

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

require_relative 'base_object'

module R2OAS
  module Schema
    module V3
      class ServerObject < BaseObject
        def to_doc
          server.data.each_with_object([]) do |server, result|
            result.push(
              'url' => (server[:url]).to_s,
              'description' => (server[:description]).to_s
            )
            # Do not Server Variable Object
          end
        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/v3/object/from_routes/server_object.rb
r2-oas-0.4.1 lib/r2-oas/schema/v3/object/from_routes/server_object.rb
r2-oas-0.4.0 lib/r2-oas/schema/v3/object/from_routes/server_object.rb
r2-oas-0.3.4 lib/r2-oas/schema/v3/object/server_object.rb
r2-oas-0.3.3 lib/r2-oas/schema/v3/object/server_object.rb
r2-oas-0.3.2 lib/r2-oas/schema/v3/object/server_object.rb
r2-oas-0.3.1 lib/r2-oas/schema/v3/object/server_object.rb
r2-oas-0.3.0 lib/r2-oas/schema/v3/object/server_object.rb
r2-oas-0.2.0 lib/r2-oas/schema/v3/object/server_object.rb
r2-oas-0.1.3 lib/r2-oas/schema/v3/object/server_object.rb
r2-oas-0.1.2 lib/r2-oas/schema/v3/object/server_object.rb
r2-oas-0.1.0 lib/r2-oas/schema/v3/object/server_object.rb