Class: Rack::WebProfiler::Engine::Processor
- Inherits:
-
Object
- Object
- Rack::WebProfiler::Engine::Processor
- Defined in:
- lib/rack/web_profiler/engine.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(request, response) ⇒ Processor
constructor
A new instance of Processor.
- #save! ⇒ Object
Constructor Details
#initialize(request, response) ⇒ Processor
75 76 77 |
# File 'lib/rack/web_profiler/engine.rb', line 75 def initialize(request, response) @record = new_record(request.clone.freeze, response.clone.freeze) end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
73 74 75 |
# File 'lib/rack/web_profiler/engine.rb', line 73 def record @record end |
Instance Method Details
#save! ⇒ Object
79 80 81 82 83 |
# File 'lib/rack/web_profiler/engine.rb', line 79 def save! @record.save({ transaction: true }) rescue => e # @todo raise_if_debug WebProfiler::RuntimeError, "Error while processing to save datas", e.backtrace end |