Class: Swagger::Blocks::Nodes::SecuritySchemeNode

Inherits:
Swagger::Blocks::Node show all
Defined in:
lib/swagger/blocks/nodes/security_scheme_node.rb

Overview

Instance Attribute Summary

Attributes inherited from Swagger::Blocks::Node

#name, #version

Instance Method Summary collapse

Methods inherited from Swagger::Blocks::Node

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

Instance Method Details

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

TODO support ^x- Vendor Extensions


8
9
10
# File 'lib/swagger/blocks/nodes/security_scheme_node.rb', line 8

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