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, #keys
Instance Method Details
#items(inline_keys = nil, &block) ⇒ Object
717
718
719
720
721
|
# File 'lib/swagger/blocks.rb', line 717
def items(inline_keys = nil, &block)
raise NotSupportedError unless is_swagger_2_0?
self.data[:items] = Swagger::Blocks::ItemsNode.call(version: version, inline_keys: inline_keys, &block)
end
|
#schema(inline_keys = nil, &block) ⇒ Object
711
712
713
714
715
|
# File 'lib/swagger/blocks.rb', line 711
def schema(inline_keys = nil, &block)
raise NotSupportedError unless is_swagger_2_0?
self.data[:schema] = Swagger::Blocks::SchemaNode.call(version: version, inline_keys: inline_keys, &block)
end
|