Sha256: b7fef90cedf6ecb9b685e6e73d19d565e362cdc5bf902bd4741a87de4f308b90
Contents?: true
Size: 718 Bytes
Versions: 6
Compression:
Stored size: 718 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 TITLE = 'Title Example API' VERSION = '1.0.0' # Initialize required element def initialize @title = TITLE @version = VERSION end end class << self def configure_info block_given? ? yield(info) : info end def info @info ||= ConfigurationInfo.new end end end
Version data entries
6 entries across 6 versions & 1 rubygems