Class: Swagger::Blocks::SecuritySchemeNode

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

Instance Method Details

#scope(name, description) ⇒ Object

TODO support ^x- Vendor Extensions



547
548
549
550
# File 'lib/swagger/blocks.rb', line 547

def scope(name, description)
  self.data[:scopes] ||= {}
  self.data[:scopes][name] = description
end