Class: Swagger::Blocks::OperationNode
- Inherits:
-
Node
- Object
- Node
- Swagger::Blocks::OperationNode
show all
- Defined in:
- lib/swagger/blocks.rb
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
320
321
322
323
|
# File 'lib/swagger/blocks.rb', line 320
def authorization(name, &block)
self.data[:authorizations] ||= Swagger::Blocks::ApiAuthorizationsNode.new
self.data[:authorizations].authorization(name, &block)
end
|
#items(&block) ⇒ Object
325
326
327
|
# File 'lib/swagger/blocks.rb', line 325
def items(&block)
self.data[:items] = Swagger::Blocks::ItemsNode.call(&block)
end
|
#parameter(&block) ⇒ Object
310
311
312
313
|
# File 'lib/swagger/blocks.rb', line 310
def parameter(&block)
self.data[:parameters] ||= []
self.data[:parameters] << Swagger::Blocks::ParameterNode.call(&block)
end
|
#response_message(&block) ⇒ Object
315
316
317
318
|
# File 'lib/swagger/blocks.rb', line 315
def response_message(&block)
self.data[:responseMessages] ||= []
self.data[:responseMessages] << Swagger::Blocks::Node.call(&block)
end
|