class SwaggerDocsGenerator::MetadataInfo
# Metadata
generated
Generate metadata for block info in swagger specification
@see github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#info-object
Public Class Methods
new()
click to toggle source
# File lib/swagger_docs_generator/metadata/info.rb, line 10 def initialize @config = SwaggerDocsGenerator.configure_info end
Public Instance Methods
construct_swagger_file()
click to toggle source
Calls superclass method
# File lib/swagger_docs_generator/metadata/info.rb, line 14 def construct_swagger_file { info: super } end
Protected Instance Methods
contact()
click to toggle source
# File lib/swagger_docs_generator/metadata/info.rb, line 36 def contact { contact: @config.contact } end
description()
click to toggle source
# File lib/swagger_docs_generator/metadata/info.rb, line 28 def description { description: @config.description } end
license()
click to toggle source
# File lib/swagger_docs_generator/metadata/info.rb, line 40 def license { license: @config.license } end
terms_of_service()
click to toggle source
# File lib/swagger_docs_generator/metadata/info.rb, line 32 def terms_of_service { termsOfService: @config.terms_of_service } end
title()
click to toggle source
# File lib/swagger_docs_generator/metadata/info.rb, line 20 def title { title: @config.title } end
version()
click to toggle source
# File lib/swagger_docs_generator/metadata/info.rb, line 24 def version { version: @config.version } end