Sha256: 91c213d2447734bad438d2c762ac2bea34490ac8cf0d0907089d5164d51d22b9
Contents?: true
Size: 677 Bytes
Versions: 4
Compression:
Stored size: 677 Bytes
Contents
# frozen_string_literal: true # :reek:Attribute module SwaggerDocsGenerator # # Information element # # Create a Hash element for information to API doc. # # @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#info-object class ConfigurationInfo attr_accessor :title, :description, :terms_of_service, :contact, :license, :version # Initialize required element def initialize @title = 'Title Example API' @version = '1.0.0' end end class << self def configure_info block_given? ? yield(info) : info end def info @info ||= ConfigurationInfo.new end end end
Version data entries
4 entries across 4 versions & 1 rubygems