Class: Fitting::Configuration::Legacy

Inherits:
Object
  • Object
show all
Defined in:
lib/fitting/configuration/legacy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLegacy

Returns a new instance of Legacy.



20
21
22
23
24
# File 'lib/fitting/configuration/legacy.rb', line 20

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

Instance Attribute Details

#apib_pathObject

Returns the value of attribute apib_path.



6
7
8
# File 'lib/fitting/configuration/legacy.rb', line 6

def apib_path
  @apib_path
end

#crafter_apib_pathObject

Returns the value of attribute crafter_apib_path.



6
7
8
# File 'lib/fitting/configuration/legacy.rb', line 6

def crafter_apib_path
  @crafter_apib_path
end

#crafter_yaml_pathObject

Returns the value of attribute crafter_yaml_path.



6
7
8
# File 'lib/fitting/configuration/legacy.rb', line 6

def crafter_yaml_path
  @crafter_yaml_path
end

#drafter_4_apib_pathObject

Returns the value of attribute drafter_4_apib_path.



6
7
8
# File 'lib/fitting/configuration/legacy.rb', line 6

def drafter_4_apib_path
  @drafter_4_apib_path
end

#drafter_4_yaml_pathObject

Returns the value of attribute drafter_4_yaml_path.



6
7
8
# File 'lib/fitting/configuration/legacy.rb', line 6

def drafter_4_yaml_path
  @drafter_4_yaml_path
end

#drafter_yaml_pathObject

Returns the value of attribute drafter_yaml_path.



6
7
8
# File 'lib/fitting/configuration/legacy.rb', line 6

def drafter_yaml_path
  @drafter_yaml_path
end

#ignore_listObject

Returns the value of attribute ignore_list.



6
7
8
# File 'lib/fitting/configuration/legacy.rb', line 6

def ignore_list
  @ignore_list
end

#include_actionsObject

Returns the value of attribute include_actions.



6
7
8
# File 'lib/fitting/configuration/legacy.rb', line 6

def include_actions
  @include_actions
end

#include_resourcesObject

Returns the value of attribute include_resources.



6
7
8
# File 'lib/fitting/configuration/legacy.rb', line 6

def include_resources
  @include_resources
end

#prefixObject

Returns the value of attribute prefix.



6
7
8
# File 'lib/fitting/configuration/legacy.rb', line 6

def prefix
  @prefix
end

#resource_white_listObject

Returns the value of attribute resource_white_list.



6
7
8
# File 'lib/fitting/configuration/legacy.rb', line 6

def resource_white_list
  @resource_white_list
end

#strictObject

Returns the value of attribute strict.



6
7
8
# File 'lib/fitting/configuration/legacy.rb', line 6

def strict
  @strict
end

#white_listObject

Returns the value of attribute white_list.



6
7
8
# File 'lib/fitting/configuration/legacy.rb', line 6

def white_list
  @white_list
end

Instance Method Details

#not_covered_pathObject



55
56
57
# File 'lib/fitting/configuration/legacy.rb', line 55

def not_covered_path
  'fitting/not_covered'
end

#stats_pathObject



51
52
53
# File 'lib/fitting/configuration/legacy.rb', line 51

def stats_path
  'fitting/stats'
end

#titleObject



47
48
49
# File 'lib/fitting/configuration/legacy.rb', line 47

def title
  'fitting'
end

#tomogramObject



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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