Module: Openapi3Parser::Node::Map
- Includes:
- Enumerable
- Included in:
- Openapi3Parser::Nodes::Callback, Openapi3Parser::Nodes::Map, Openapi3Parser::Nodes::Paths, Openapi3Parser::Nodes::Responses, Openapi3Parser::Nodes::SecurityRequirement
- Defined in:
- lib/openapi3_parser/node/map.rb
Instance Attribute Summary collapse
-
#node_context ⇒ Object
readonly
Returns the value of attribute node_context.
-
#node_data ⇒ Object
readonly
Returns the value of attribute node_data.
Instance Method Summary collapse
Instance Attribute Details
#node_context ⇒ Object (readonly)
Returns the value of attribute node_context.
8 9 10 |
# File 'lib/openapi3_parser/node/map.rb', line 8 def node_context @node_context end |
#node_data ⇒ Object (readonly)
Returns the value of attribute node_data.
8 9 10 |
# File 'lib/openapi3_parser/node/map.rb', line 8 def node_data @node_data end |
Instance Method Details
#[](value) ⇒ Object
15 16 17 |
# File 'lib/openapi3_parser/node/map.rb', line 15 def [](value) node_data[value] end |
#each(&block) ⇒ Object
19 20 21 |
# File 'lib/openapi3_parser/node/map.rb', line 19 def each(&block) node_data.each(&block) end |
#initialize(data, context) ⇒ Object
10 11 12 13 |
# File 'lib/openapi3_parser/node/map.rb', line 10 def initialize(data, context) @node_data = data @node_context = context end |