Class: Whisperer::Preprocessors::ResponseBody
- Defined in:
- lib/whisperer/preprocessors/response_body.rb
Instance Method Summary collapse
Methods inherited from Base
Methods included from Helpers
Constructor Details
This class inherits a constructor from Whisperer::Preprocessors::Base
Instance Method Details
#process ⇒ Object
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 |