Class: ReqresRspec::Formatters::Base
- Inherits:
-
Object
- Object
- ReqresRspec::Formatters::Base
- Defined in:
- lib/reqres_rspec/formatters/base.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#output_path ⇒ Object
readonly
Returns the value of attribute output_path.
-
#records ⇒ Object
readonly
Returns the value of attribute records.
Instance Method Summary collapse
-
#initialize(records) ⇒ Base
constructor
A new instance of Base.
- #process ⇒ Object
Constructor Details
#initialize(records) ⇒ Base
Returns a new instance of Base.
4 5 6 7 8 |
# File 'lib/reqres_rspec/formatters/base.rb', line 4 def initialize(records) @records = records @output_path = ReqresRspec.configuration.output_path @logger = ReqresRspec.logger end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
9 10 11 |
# File 'lib/reqres_rspec/formatters/base.rb', line 9 def logger @logger end |
#output_path ⇒ Object (readonly)
Returns the value of attribute output_path.
9 10 11 |
# File 'lib/reqres_rspec/formatters/base.rb', line 9 def output_path @output_path end |
#records ⇒ Object (readonly)
Returns the value of attribute records.
9 10 11 |
# File 'lib/reqres_rspec/formatters/base.rb', line 9 def records @records end |
Instance Method Details
#process ⇒ Object
11 12 13 14 |
# File 'lib/reqres_rspec/formatters/base.rb', line 11 def process cleanup write end |