Class: Swagger::Blocks::ResourceListingAuthorizationsNode

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

Overview

NOTE: in the spec this is different than API Declaration authorizations. goo.gl/PvwUXj#514-authorizations-object

Instance Attribute Summary

Attributes inherited from Node

#name

Instance Method Summary collapse

Methods inherited from Node

#as_json, call, #data, #key

Instance Method Details

#authorization(name, &block) ⇒ Object



203
204
205
# File 'lib/swagger/blocks.rb', line 203

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