class Fitting::Configuration::Legacy

Attributes

apib_path[RW]
crafter_apib_path[RW]
crafter_yaml_path[RW]
drafter_4_apib_path[RW]
drafter_4_yaml_path[RW]
drafter_yaml_path[RW]
ignore_list[RW]
include_actions[RW]
include_resources[RW]
prefix[RW]
resource_white_list[RW]
strict[RW]
white_list[RW]

Public Class Methods

new() click to toggle source
# File lib/fitting/configuration/legacy.rb, line 20
def initialize
  @strict = false
  @prefix = ''
  @ignore_list = []
end

Public Instance Methods

not_covered_path() click to toggle source
# File lib/fitting/configuration/legacy.rb, line 55
def not_covered_path
  'fitting/not_covered'
end
stats_path() click to toggle source
# File lib/fitting/configuration/legacy.rb, line 51
def stats_path
  'fitting/stats'
end
title() click to toggle source
# File lib/fitting/configuration/legacy.rb, line 47
def title
  'fitting'
end
tomogram() click to toggle source
# File lib/fitting/configuration/legacy.rb, line 26
def tomogram
  @tomogram ||= if @crafter_apib_path || @crafter_yaml_path
                  Tomograph::Tomogram.new(
                    prefix: @prefix,
                    crafter_apib_path: @crafter_apib_path,
                    crafter_yaml_path: @crafter_yaml_path
                  )
                elsif @drafter_4_apib_path || @drafter_4_yaml_path
                  Tomograph::Tomogram.new(
                    prefix: @prefix,
                    drafter_4_apib_path: @drafter_4_apib_path,
                    drafter_4_yaml_path: @drafter_4_yaml_path
                  )
                else Tomograph::Tomogram.new(
                  prefix: @prefix,
                  apib_path: @apib_path,
                  drafter_yaml_path: @drafter_yaml_path
                )
                end
end