Class: Swagger::Blocks::ResourceListingAuthorizationsNode

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

Overview

v1.2: NOTE: in the spec this is different than API Declaration 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



354
355
356
# File 'lib/swagger/blocks.rb', line 354

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