Class: Drntest::ResponseNormalizer
- Inherits:
-
Object
- Object
- Drntest::ResponseNormalizer
- Defined in:
- lib/drntest/response-normalizer.rb
Instance Method Summary collapse
-
#initialize(request, response) ⇒ ResponseNormalizer
constructor
A new instance of ResponseNormalizer.
- #normalize ⇒ Object
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
#normalize ⇒ Object
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 (normalized_response) normalized_response end |