Class: Openapi3Parser::Node::PathItem
- Inherits:
-
Object
- Object
- Object
- Openapi3Parser::Node::PathItem
show all
- Defined in:
- lib/openapi3_parser/node/path_item.rb
Overview
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
Instance Method Details
#alternative_servers? ⇒ Boolean
Whether this object uses it’s own defined servers instead of falling back to the root ones.
73
74
75
|
# File 'lib/openapi3_parser/node/path_item.rb', line 73
def alternative_servers?
servers != node_context.document.root.servers
end
|
40
41
42
|
# File 'lib/openapi3_parser/node/path_item.rb', line 40
def delete
self["delete"]
end
|
#description ⇒ String?
15
16
17
|
# File 'lib/openapi3_parser/node/path_item.rb', line 15
def description
self["description"]
end
|
#description_html ⇒ String?
20
21
22
|
# File 'lib/openapi3_parser/node/path_item.rb', line 20
def description_html
render_markdown(description)
end
|
25
26
27
|
# File 'lib/openapi3_parser/node/path_item.rb', line 25
def get
self["get"]
end
|
50
51
52
|
# File 'lib/openapi3_parser/node/path_item.rb', line 50
def head
self["head"]
end
|
45
46
47
|
# File 'lib/openapi3_parser/node/path_item.rb', line 45
def options
self["options"]
end
|
78
79
80
|
# File 'lib/openapi3_parser/node/path_item.rb', line 78
def parameters
self["parameters"]
end
|
55
56
57
|
# File 'lib/openapi3_parser/node/path_item.rb', line 55
def patch
self["patch"]
end
|
35
36
37
|
# File 'lib/openapi3_parser/node/path_item.rb', line 35
def post
self["post"]
end
|
30
31
32
|
# File 'lib/openapi3_parser/node/path_item.rb', line 30
def put
self["put"]
end
|
65
66
67
|
# File 'lib/openapi3_parser/node/path_item.rb', line 65
def servers
self["servers"]
end
|
#summary ⇒ String?
10
11
12
|
# File 'lib/openapi3_parser/node/path_item.rb', line 10
def summary
self["summary"]
end
|
60
61
62
|
# File 'lib/openapi3_parser/node/path_item.rb', line 60
def trace
self["trace"]
end
|