Sha256: 74e5e59e4b0708ad2ca5fc8775dbe0fa3149f53fec21c62e0f39a4c310cd1480
Contents?: true
Size: 830 Bytes
Versions: 3
Compression:
Stored size: 830 Bytes
Contents
# frozen_string_literal: true module SwaggerDocsGenerator # # Metadata generated # # @abstract # Abstract class for metadata provide to controlloer in Rails application class MetadataController < Metadata def initialize @file_path = File.join(Dir.pwd, 'public', SwaggerDocsGenerator.configure_info.version) conf = SwaggerDocsGenerator.configure.base_controller @controllers = if conf.is_a?(String) ApplicationController.subclasses else conf.subclasses end end private attr_accessor :controllers, :file_path end end require 'swagger_docs_generator/metadata/path' require 'swagger_docs_generator/metadata/tag' require 'swagger_docs_generator/metadata/definition'
Version data entries
3 entries across 3 versions & 1 rubygems