Sha256: 8a7896e0a10d0890b420f2b6939721e1595af8a9ffe75c8d4b3655d1d4cba8f4

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

require 'tomograph'

module Fitting
  class Configuration
    class Legacy
      attr_accessor :apib_path,
                    :drafter_yaml_path,
                    :strict,
                    :prefix,
                    :white_list,
                    :resource_white_list,
                    :ignore_list,
                    :include_resources,
                    :include_actions

      def initialize
        @strict = false
        @prefix = ''
        @ignore_list = []
      end

      def tomogram
        @tomogram ||= if @crafter_yaml_path
                        Tomograph::Tomogram.new(
                          prefix: @prefix,
                          apib_path: @apib_path,
                          crafter_yaml_path: @crafter_yaml_path
                        )
                      else Tomograph::Tomogram.new(
                        prefix: @prefix,
                        apib_path: @apib_path,
                        drafter_yaml_path: @drafter_yaml_path
                      )
                      end
      end

      def title
        'fitting'
      end

      def stats_path
        'fitting/stats'
      end

      def not_covered_path
        'fitting/not_covered'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fitting-2.10.0 lib/fitting/configuration/legacy.rb