Class: DatabaseLogger::CommandMessage
- Inherits:
-
Data
- Object
- Data
- DatabaseLogger::CommandMessage
- Defined in:
- lib/middleware/database_logger.rb
Overview
Data structure for captured command metadata
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#timeline ⇒ Object
readonly
Returns the value of attribute timeline.
-
#μs ⇒ Object
readonly
Returns the value of attribute μs.
Instance Method Summary collapse
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command
97 98 99 |
# File 'lib/middleware/database_logger.rb', line 97 def command @command end |
#timeline ⇒ Object (readonly)
Returns the value of attribute timeline
97 98 99 |
# File 'lib/middleware/database_logger.rb', line 97 def timeline @timeline end |
#μs ⇒ Object (readonly)
Returns the value of attribute μs
97 98 99 |
# File 'lib/middleware/database_logger.rb', line 97 def μs @μs end |
Instance Method Details
#inspect ⇒ Object
100 101 102 103 |
# File 'lib/middleware/database_logger.rb', line 100 def inspect cmd, duration, timeline = to_a format('%.6f %4dμs > %s', timeline, duration, cmd) end |