Class: Fitting::Configuration
- Inherits:
-
Object
- Object
- Fitting::Configuration
- Defined in:
- lib/fitting/configuration.rb
Instance Attribute Summary collapse
-
#fitting_report_path ⇒ Object
Returns the value of attribute fitting_report_path.
-
#outgoing_prefixes ⇒ Object
Returns the value of attribute outgoing_prefixes.
-
#prefixes ⇒ Object
Returns the value of attribute prefixes.
-
#rspec_json_path ⇒ Object
Returns the value of attribute rspec_json_path.
-
#webmock_json_path ⇒ Object
Returns the value of attribute webmock_json_path.
Instance Method Summary collapse
-
#initialize(config) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(config) ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 |
# File 'lib/fitting/configuration.rb', line 9 def initialize(config) @rspec_json_path = config['rspec_json_path'] || './fitting_tests' @fitting_report_path = config['fitting_report_path'] || './fitting' @prefixes = config['prefixes'] || [] @webmock_json_path = config['webmock_json_path'] || './outgoing_request_tests' @outgoing_prefixes = config['outgoing_prefixes'] || [] end |
Instance Attribute Details
#fitting_report_path ⇒ Object
Returns the value of attribute fitting_report_path.
3 4 5 |
# File 'lib/fitting/configuration.rb', line 3 def fitting_report_path @fitting_report_path end |
#outgoing_prefixes ⇒ Object
Returns the value of attribute outgoing_prefixes.
3 4 5 |
# File 'lib/fitting/configuration.rb', line 3 def outgoing_prefixes @outgoing_prefixes end |
#prefixes ⇒ Object
Returns the value of attribute prefixes.
3 4 5 |
# File 'lib/fitting/configuration.rb', line 3 def prefixes @prefixes end |
#rspec_json_path ⇒ Object
Returns the value of attribute rspec_json_path.
3 4 5 |
# File 'lib/fitting/configuration.rb', line 3 def rspec_json_path @rspec_json_path end |
#webmock_json_path ⇒ Object
Returns the value of attribute webmock_json_path.
3 4 5 |
# File 'lib/fitting/configuration.rb', line 3 def webmock_json_path @webmock_json_path end |