Class: Swagger::Blocks::ApiNode
Overview
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
Methods inherited from Node
#as_json, call, #data, #is_swagger_1_2?, #is_swagger_2_0?, #key
Instance Method Details
#operation(&block) ⇒ Object
477 478 479 480 |
# File 'lib/swagger/blocks.rb', line 477 def operation(&block) self.data[:operations] ||= [] self.data[:operations] << Swagger::Blocks::OperationNode.call(version: version, &block) end |