Class: Swagger::Blocks::InfoNode
- Inherits:
-
Node
- Object
- Node
- Swagger::Blocks::InfoNode
show all
- Defined in:
- lib/swagger/blocks.rb
Overview
Instance Attribute Summary
Attributes inherited from Node
#name, #version
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
390
391
392
393
394
|
# File 'lib/swagger/blocks.rb', line 390
def contact(inline_keys = nil, &block)
raise NotSupportedError unless is_swagger_2_0?
self.data[:contact] = Swagger::Blocks::ContactNode.call(version: version, inline_keys: inline_keys, &block)
end
|
#license(inline_keys = nil, &block) ⇒ Object
396
397
398
399
400
|
# File 'lib/swagger/blocks.rb', line 396
def license(inline_keys = nil, &block)
raise NotSupportedError unless is_swagger_2_0?
self.data[:license] = Swagger::Blocks::LicenseNode.call(version: version, inline_keys: inline_keys, &block)
end
|