Class: Drntest::ResponsesNormalizer

Inherits:
Object
  • Object
show all
Defined in:
lib/drntest/responses-normalizer.rb

Instance Method Summary collapse

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

#normalizeObject



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