Class: Swagger::Blocks::ApiAuthorizationsNode

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

Overview

v1.2: NOTE: in the spec this is different than Resource Listing’s authorizations. v1.2: goo.gl/PvwUXj#514-authorizations-object

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

#authorization(name, &block) ⇒ Object



565
566
567
# File 'lib/swagger/blocks.rb', line 565

def authorization(name, &block)
  self.data[name] ||= Swagger::Blocks::ApiAuthorizationNode.call(version: version, &block)
end