Class: Swagger::Blocks::Nodes::InfoNode

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

Overview

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

#contact(inline_keys = nil, &block) ⇒ Object



6
7
8
# File 'lib/swagger/blocks/nodes/info_node.rb', line 6

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

#license(inline_keys = nil, &block) ⇒ Object



10
11
12
# File 'lib/swagger/blocks/nodes/info_node.rb', line 10

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