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, #keys
Instance Method Details
#operation(inline_keys = nil, &block) ⇒ Object
486 487 488 489 |
# File 'lib/swagger/blocks.rb', line 486 def operation(inline_keys = nil, &block) self.data[:operations] ||= [] self.data[:operations] << Swagger::Blocks::OperationNode.call(version: version, inline_keys: inline_keys, &block) end |