Class: RequestLogAnalyzer::Source::Request
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- RequestLogAnalyzer::Source::Request
- Defined in:
- lib/request_log_analyzer/source/database_loader.rb
Overview
Active Resource hook
Instance Method Summary collapse
Instance Method Details
#convert(file_format) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/request_log_analyzer/source/database_loader.rb', line 10 def convert(file_format) send_attributes = self.attributes send_attributes.merge!(self.completed_lines.first.attributes) if self.completed_lines.first send_attributes.merge!(self.processing_lines.first.attributes) if self.processing_lines.first return RequestLogAnalyzer::Request.new(file_format, send_attributes) end |