Class: Swagger::Blocks::PropertiesNode
- Defined in:
- lib/swagger/blocks.rb
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
#property(name, inline_keys = nil, &block) ⇒ Object
760 761 762 |
# File 'lib/swagger/blocks.rb', line 760 def property(name, inline_keys = nil, &block) self.data[name] = Swagger::Blocks::PropertyNode.call(version: version, inline_keys: inline_keys, &block) end |