Sha256: 9f105daa483367bb751e6eec9f35a24e2364faef5ddd0a1a7cacee219674088b

Contents?: true

Size: 657 Bytes

Versions: 11

Compression:

Stored size: 657 Bytes

Contents

# frozen_string_literal: true

require "openapi3_parser/node/object"

module Openapi3Parser
  module Node
    # @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#xmlObject
    class Xml < Node::Object
      # @return [String, nil]
      def name
        self["name"]
      end

      # @return [String, nil]
      def namespace
        self["namespace"]
      end

      # @return [String, nil]
      def prefix
        self["prefix"]
      end

      # @return [Boolean]
      def attribute?
        self["attribute"]
      end

      # @return [Boolean]
      def wrapped?
        self["wrapped"]
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
openapi3_parser-0.10.1 lib/openapi3_parser/node/xml.rb
openapi3_parser-0.9.2 lib/openapi3_parser/node/xml.rb
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/gems/openapi3_parser-0.9.1/lib/openapi3_parser/node/xml.rb
openapi3_parser-0.9.1 lib/openapi3_parser/node/xml.rb
openapi3_parser-0.9.0 lib/openapi3_parser/node/xml.rb
openapi3_parser-0.8.2 lib/openapi3_parser/node/xml.rb
openapi3_parser-0.8.1 lib/openapi3_parser/node/xml.rb
openapi3_parser-0.8.0 lib/openapi3_parser/node/xml.rb
openapi3_parser-0.7.0 lib/openapi3_parser/node/xml.rb
openapi3_parser-0.6.1 lib/openapi3_parser/node/xml.rb
openapi3_parser-0.6.0 lib/openapi3_parser/node/xml.rb