Class: Fitting::Configuration::Legacy
- Inherits:
-
Object
- Object
- Fitting::Configuration::Legacy
- Defined in:
- lib/fitting/configuration/legacy.rb
Instance Attribute Summary collapse
-
#apib_path ⇒ Object
Returns the value of attribute apib_path.
-
#crafter_apib_path ⇒ Object
Returns the value of attribute crafter_apib_path.
-
#crafter_yaml_path ⇒ Object
Returns the value of attribute crafter_yaml_path.
-
#drafter_4_apib_path ⇒ Object
Returns the value of attribute drafter_4_apib_path.
-
#drafter_4_yaml_path ⇒ Object
Returns the value of attribute drafter_4_yaml_path.
-
#drafter_yaml_path ⇒ Object
Returns the value of attribute drafter_yaml_path.
-
#ignore_list ⇒ Object
Returns the value of attribute ignore_list.
-
#include_actions ⇒ Object
Returns the value of attribute include_actions.
-
#include_resources ⇒ Object
Returns the value of attribute include_resources.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#resource_white_list ⇒ Object
Returns the value of attribute resource_white_list.
-
#strict ⇒ Object
Returns the value of attribute strict.
-
#white_list ⇒ Object
Returns the value of attribute white_list.
Instance Method Summary collapse
-
#initialize ⇒ Legacy
constructor
A new instance of Legacy.
- #not_covered_path ⇒ Object
- #stats_path ⇒ Object
- #title ⇒ Object
- #tomogram ⇒ Object
Constructor Details
#initialize ⇒ Legacy
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_path ⇒ Object
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_path ⇒ Object
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_path ⇒ Object
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_path ⇒ Object
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_path ⇒ Object
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_path ⇒ Object
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_list ⇒ Object
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_actions ⇒ Object
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_resources ⇒ Object
Returns the value of attribute include_resources.
6 7 8 |
# File 'lib/fitting/configuration/legacy.rb', line 6 def include_resources @include_resources end |
#prefix ⇒ Object
Returns the value of attribute prefix.
6 7 8 |
# File 'lib/fitting/configuration/legacy.rb', line 6 def prefix @prefix end |
#resource_white_list ⇒ Object
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 |
#strict ⇒ Object
Returns the value of attribute strict.
6 7 8 |
# File 'lib/fitting/configuration/legacy.rb', line 6 def strict @strict end |
#white_list ⇒ Object
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_path ⇒ Object
55 56 57 |
# File 'lib/fitting/configuration/legacy.rb', line 55 def not_covered_path 'fitting/not_covered' end |
#stats_path ⇒ Object
51 52 53 |
# File 'lib/fitting/configuration/legacy.rb', line 51 def stats_path 'fitting/stats' end |
#title ⇒ Object
47 48 49 |
# File 'lib/fitting/configuration/legacy.rb', line 47 def title 'fitting' end |
#tomogram ⇒ Object
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 |