Class: Swagger::Blocks::Nodes::PropertiesNode

Inherits:
Swagger::Blocks::Node show all
Defined in:
lib/swagger/blocks/nodes/properties_node.rb

Instance Attribute Summary

Attributes inherited from Swagger::Blocks::Node

#name, #version

Instance Method Summary collapse

Methods inherited from Swagger::Blocks::Node

#as_json, call, #data, #is_swagger_2_0?, #key, #keys

Instance Method Details

#property(name, inline_keys = nil, &block) ⇒ Object


5
6
7
# File 'lib/swagger/blocks/nodes/properties_node.rb', line 5

def property(name, inline_keys = nil, &block)
  self.data[name] = Swagger::Blocks::Nodes::PropertyNode.call(version: version, inline_keys: inline_keys, &block)
end