Class: Drntest::ResponseNormalizer

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

Instance Method Summary collapse

Constructor Details

#initialize(request, response) ⇒ ResponseNormalizer

Returns a new instance of ResponseNormalizer.



18
19
20
21
# File 'lib/drntest/response-normalizer.rb', line 18

def initialize(request, response)
  @request = request
  @response = response
end

Instance Method Details

#normalizeObject



23
24
25
26
27
28
29
# File 'lib/drntest/response-normalizer.rb', line 23

def normalize
  return @response if @response.nil?

  normalized_response = @response.dup
  normalize_droonga_message!(normalized_response)
  normalized_response
end