Sha256: fd485b2981de7f3cbde69c9459e8d0df8ecbec2ffd7a796268ff76ead31b808e
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
class SlowActions private # Object representing a single entry in a rails application's log file class LogEntry # Create a new #LogEntry def initialize self.processed = false end # The #Controller attr_accessor :controller # The #Action attr_accessor :action # IP address of user attr_accessor :ip # date attr_accessor :date # time attr_accessor :time # HTTP Method attr_accessor :method # Session ID attr_accessor :session # Parameters to the action attr_accessor :parameters # Total duration to complete attr_accessor :duration # time spent rendering attr_accessor :rendering # time spent in the database attr_accessor :db # error text (if any) attr_accessor :error_text # whether or not is has already been processed by #SlowActions attr_accessor :processed # Whether or not this #LogEntry was an error def error? return false if error_text.nil? return false if error_text.empty? return true end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ngauthier-slow-actions-0.3.0 | lib/slow_actions_log_entry.rb |
ngauthier-slow-actions-0.3.1 | lib/slow_actions_log_entry.rb |
ngauthier-slow-actions-0.3.2 | lib/slow_actions_log_entry.rb |