Class: Drntest::ResponsesNormalizer
- Inherits:
-
Object
- Object
- Drntest::ResponsesNormalizer
- Defined in:
- lib/drntest/responses-normalizer.rb
Instance Method Summary collapse
-
#initialize(request, responses) ⇒ ResponsesNormalizer
constructor
A new instance of ResponsesNormalizer.
- #normalize ⇒ Object
Constructor Details
#initialize(request, responses) ⇒ ResponsesNormalizer
Returns a new instance of ResponsesNormalizer.
18 19 20 21 |
# File 'lib/drntest/responses-normalizer.rb', line 18 def initialize(request, responses) @request = request @responses = responses end |
Instance Method Details
#normalize ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/drntest/responses-normalizer.rb', line 23 def normalize if dump_command? normalize_dump_responses elsif system_absorb_data_command? normalize_system_absorb_data_responses else @responses end end |