Sha256: be24f84d2ba639252ce8526a848b2fd13be4c21f9335703aa4db393448eb4a71
Contents?: true
Size: 860 Bytes
Versions: 6
Compression:
Stored size: 860 Bytes
Contents
# frozen_string_literal: true module SwaggerDocsGenerator # # Parse classes # # @abstract Classes for parsing Rails classes # # @!attribute [r] controller # It's a name of controller parsed # @!attribute [r] path # It's a path to temporary file # @!attribute [r] version # It's a version to API documentation parsed class Parser attr_reader :controller, :path, :version def initialize(controller) @controller = controller @path = File.join(Dir.pwd, 'public') @version = SwaggerDocsGenerator.configure_info.version end def controller_file File.join(@path, @version, "#{controller_name}.json") end private def controller_name @controller.controller_name end end end require 'swagger_docs_generator/parser/controller' require 'swagger_docs_generator/parser/action'
Version data entries
6 entries across 6 versions & 1 rubygems