Sha256: 10f8aec995ed3522db3c146025cab0c3a8ae79069f5d10704f2e89e30a8a8b1d

Contents?: true

Size: 682 Bytes

Versions: 4

Compression:

Stored size: 682 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
        node_data["name"]
      end

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

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openapi3_parser-0.5.2 lib/openapi3_parser/node/xml.rb
openapi3_parser-0.5.1 lib/openapi3_parser/node/xml.rb
openapi3_parser-0.5.0 lib/openapi3_parser/node/xml.rb
openapi3_parser-0.4.0 lib/openapi3_parser/node/xml.rb