Class: Swagger::Blocks::Nodes::InfoNode
Overview
Instance Attribute Summary
#name, #version
Instance Method Summary
collapse
#as_json, call, #data, #is_swagger_2_0?, #key, #keys
Instance Method Details
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
|