Class: Rack::WebProfiler::Engine::Processor

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/web_profiler/engine.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#recordObject (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