Class: Swagger::Blocks::ParameterNode
- Inherits:
-
Node
- Object
- Node
- Swagger::Blocks::ParameterNode
show all
- Defined in:
- lib/swagger/blocks.rb
Overview
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
#items(&block) ⇒ Object
701
702
703
704
705
|
# File 'lib/swagger/blocks.rb', line 701
def items(&block)
raise NotSupportedError unless is_swagger_2_0?
self.data[:items] = Swagger::Blocks::ItemsNode.call(version: version, &block)
end
|
#schema(&block) ⇒ Object
695
696
697
698
699
|
# File 'lib/swagger/blocks.rb', line 695
def schema(&block)
raise NotSupportedError unless is_swagger_2_0?
self.data[:schema] = Swagger::Blocks::SchemaNode.call(version: version, &block)
end
|