Class: Swagger::Blocks::ModelNode

Inherits:
Node
  • Object
show all
Defined in:
lib/swagger/blocks.rb

Overview

Instance Attribute Summary

Attributes inherited from Node

#name

Instance Method Summary collapse

Methods inherited from Node

#as_json, call, #data, #key

Instance Method Details

#property(name, &block) ⇒ Object



381
382
383
384
# File 'lib/swagger/blocks.rb', line 381

def property(name, &block)
  self.data[:properties] ||= Swagger::Blocks::PropertiesNode.new
  self.data[:properties].property(name, &block)
end