Class: Openapi3Parser::Nodes::Example

Inherits:
Object
  • Object
show all
Includes:
Openapi3Parser::Node::Object
Defined in:
lib/openapi3_parser/nodes/example.rb

Overview

Instance Attribute Summary

Attributes included from Openapi3Parser::Node::Object

#node_context, #node_data

Instance Method Summary collapse

Methods included from Openapi3Parser::Node::Object

#[], #each, #extension, #initialize

Instance Method Details

#descriptionString?

Returns:

  • (String, nil)


17
18
19
# File 'lib/openapi3_parser/nodes/example.rb', line 17

def description
  node_data["description"]
end

#external_valueString?

Returns:

  • (String, nil)


27
28
29
# File 'lib/openapi3_parser/nodes/example.rb', line 27

def external_value
  node_data["externalValue"]
end

#summaryString?

Returns:

  • (String, nil)


12
13
14
# File 'lib/openapi3_parser/nodes/example.rb', line 12

def summary
  node_data["summary"]
end

#valueObject

Returns:

  • (Object)


22
23
24
# File 'lib/openapi3_parser/nodes/example.rb', line 22

def value
  node_data["value"]
end