Sha256: 73c2605ead746169d56eb478f72d6908e4172445cdce8765d554059ae1d5bd5c

Contents?: true

Size: 309 Bytes

Versions: 13

Compression:

Stored size: 309 Bytes

Contents

require 'ostruct'

module Rswag
  module Ui
    class Configuration
      attr_reader :swagger_endpoints

      def initialize
        @swagger_endpoints = []
      end

      def swagger_endpoint(path, title)
        @swagger_endpoints << OpenStruct.new(path: path, title: title)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rswag-ui-1.6.0 lib/rswag/ui/configuration.rb
rswag-ui-1.5.2 lib/rswag/ui/configuration.rb
rswag-ui-1.5.1 lib/rswag/ui/configuration.rb
rswag-ui-1.5.0 lib/rswag/ui/configuration.rb
rswag-ui-1.4.0 lib/rswag/ui/configuration.rb
rswag-ui-1.3.0 lib/rswag/ui/configuration.rb
rswag-ui-1.2.1 lib/rswag/ui/configuration.rb
rswag-ui-1.2.0 lib/rswag/ui/configuration.rb
rswag-ui-1.1.0 lib/rswag/ui/configuration.rb
rswag-ui-1.0.3 lib/rswag/ui/configuration.rb
rswag-ui-1.0.2 lib/rswag/ui/configuration.rb
rswag-ui-1.0.1 lib/rswag/ui/configuration.rb
rswag-ui-1.0.0 lib/rswag/ui/configuration.rb