Class: Openapi3Parser::Node::Xml

Inherits:
Object
  • Object
show all
Defined in:
lib/openapi3_parser/node/xml.rb

Overview

Instance Attribute Summary

Attributes inherited from Object

#node_context, #node_data

Instance Method Summary collapse

Methods inherited from Object

#[], #extension, #initialize, #inspect, #node_at, #render_markdown

Constructor Details

This class inherits a constructor from Openapi3Parser::Node::Object

Instance Method Details

#attribute?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/openapi3_parser/node/xml.rb', line 25

def attribute?
  node_data["attribute"]
end

#nameString?

Returns:

  • (String, nil)


10
11
12
# File 'lib/openapi3_parser/node/xml.rb', line 10

def name
  node_data["name"]
end

#namespaceString?

Returns:

  • (String, nil)


15
16
17
# File 'lib/openapi3_parser/node/xml.rb', line 15

def namespace
  node_data["namespace"]
end

#prefixString?

Returns:

  • (String, nil)


20
21
22
# File 'lib/openapi3_parser/node/xml.rb', line 20

def prefix
  node_data["prefix"]
end

#wrapped?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/openapi3_parser/node/xml.rb', line 30

def wrapped?
  node_data["wrapped"]
end