Class: Whisperer::Preprocessors::ResponseBody

Inherits:
Base
  • Object
show all
Defined in:
lib/whisperer/preprocessors/response_body.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Helpers

#add_builder

Constructor Details

This class inherits a constructor from Whisperer::Preprocessors::Base

Instance Method Details

#processObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/whisperer/preprocessors/response_body.rb', line 6

def process
  body = @record.response.body

  unless body.data_obj.nil?
    body.string = serializer_class(body.serializer.to_sym).serialize(
      body.data_obj,
      body.serializer_opts
    )
  end
end