Class: Swagger::Blocks::TagNode

Inherits:
Node
  • Object
show all
Defined in:
lib/swagger/blocks.rb

Overview

Instance Attribute Summary

Attributes inherited from Node

#name, #version

Instance Method Summary collapse

Methods inherited from Node

#as_json, call, #data, #is_swagger_1_2?, #is_swagger_2_0?, #key, #keys

Instance Method Details

#externalDocs(inline_keys = nil, &block) ⇒ Object

TODO support ^x- Vendor Extensions



729
730
731
# File 'lib/swagger/blocks.rb', line 729

def externalDocs(inline_keys = nil, &block)
  self.data[:externalDocs] = Swagger::Blocks::ExternalDocsNode.call(version: version, inline_keys: inline_keys, &block)
end