Class: Openapi3Parser::Node::Openapi

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

Overview

OpenAPI Root Object

Instance Attribute Summary

Attributes inherited from Object

#node_context, #node_data

Instance Method Summary collapse

Methods inherited from Object

#==, #[], #each, #extension, #initialize, #inspect, #node_at, #render_markdown, #values

Constructor Details

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

Instance Method Details

#componentsComponents

Returns:



31
32
33
# File 'lib/openapi3_parser/node/openapi.rb', line 31

def components
  self["components"]
end

#external_docsExternalDocumentation?

Returns:



46
47
48
# File 'lib/openapi3_parser/node/openapi.rb', line 46

def external_docs
  self["externalDocs"]
end

#infoInfo

Returns:



16
17
18
# File 'lib/openapi3_parser/node/openapi.rb', line 16

def info
  self["info"]
end

#openapiString

Returns:

  • (String)


11
12
13
# File 'lib/openapi3_parser/node/openapi.rb', line 11

def openapi
  self["openapi"]
end

#pathsPaths

Returns:



26
27
28
# File 'lib/openapi3_parser/node/openapi.rb', line 26

def paths
  self["paths"]
end

#securityNode::Array<SecurityRequirement>



36
37
38
# File 'lib/openapi3_parser/node/openapi.rb', line 36

def security
  self["security"]
end

#serversNode::Array<Server>

Returns:



21
22
23
# File 'lib/openapi3_parser/node/openapi.rb', line 21

def servers
  self["servers"]
end

#tagsNode::Array<Tag>

Returns:



41
42
43
# File 'lib/openapi3_parser/node/openapi.rb', line 41

def tags
  self["tags"]
end