Class: Logger::Benchmarker
- Defined in:
- lib/core-extensions/benchmark-logger.rb
Instance Attribute Summary collapse
-
#msg ⇒ Object
Returns the value of attribute msg.
-
#severity ⇒ Object
Returns the value of attribute severity.
Instance Method Summary collapse
-
#initialize(msg, severity = :warn) ⇒ Benchmarker
constructor
A new instance of Benchmarker.
- #runtime ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(msg, severity = :warn) ⇒ Benchmarker
Returns a new instance of Benchmarker.
8 9 10 11 |
# File 'lib/core-extensions/benchmark-logger.rb', line 8 def initialize(msg, severity = :warn) @msg, @start = msg, Time.now @severity = severity end |
Instance Attribute Details
#msg ⇒ Object
Returns the value of attribute msg.
5 6 7 |
# File 'lib/core-extensions/benchmark-logger.rb', line 5 def msg @msg end |
#severity ⇒ Object
Returns the value of attribute severity.
6 7 8 |
# File 'lib/core-extensions/benchmark-logger.rb', line 6 def severity @severity end |