Sha256: ccc386ccc5ffdf3c983932c19ad95829946cbbd25a77bdd4dcaa7b8ce30535b8

Contents?: true

Size: 578 Bytes

Versions: 4

Compression:

Stored size: 578 Bytes

Contents

class SlowActions
  private
  class LogEntry
    def initialize
      self.processed = false
    end
    attr_accessor :controller
    attr_accessor :action
    attr_accessor :ip
    attr_accessor :date
    attr_accessor :time
    attr_accessor :method
    attr_accessor :session
    attr_accessor :parameters
    attr_accessor :duration
    attr_accessor :rendering
    attr_accessor :db
    attr_accessor :error_text
    attr_accessor :processed

    def error?
      return false if error_text.nil?
      return false if error_text.empty?
      return true
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ngauthier-slow-actions-0.2.2 lib/slow_actions_log_entry.rb
ngauthier-slow-actions-0.2.3 lib/slow_actions_log_entry.rb
ngauthier-slow-actions-0.2.4 lib/slow_actions_log_entry.rb
ngauthier-slow-actions-0.2.6 lib/slow_actions_log_entry.rb