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
Returns a new instance of Processor.
77 78 79 |
# File 'lib/rack/web_profiler/engine.rb', line 77 def initialize(request, response) @record = new_record(request, response) end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
75 76 77 |
# File 'lib/rack/web_profiler/engine.rb', line 75 def record @record end |
Instance Method Details
#save! ⇒ Object
81 82 83 84 85 |
# File 'lib/rack/web_profiler/engine.rb', line 81 def save! @record.save({ transaction: true }) rescue => e # @todo raise_if_debug WebProfiler::RuntimeError, "Error while processing to save datas", e.backtrace end |