Class: ExtendedLogger::Message
- Inherits:
-
Struct
- Object
- Struct
- ExtendedLogger::Message
- Defined in:
- lib/extended_logger/message.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#label ⇒ Object
Returns the value of attribute label.
-
#level ⇒ Object
Returns the value of attribute level.
- #prose ⇒ Object
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block
2 3 4 |
# File 'lib/extended_logger/message.rb', line 2 def block @block end |
#label ⇒ Object
Returns the value of attribute label
2 3 4 |
# File 'lib/extended_logger/message.rb', line 2 def label @label end |
#level ⇒ Object
Returns the value of attribute level
2 3 4 |
# File 'lib/extended_logger/message.rb', line 2 def level @level end |
#prose ⇒ Object
9 10 11 |
# File 'lib/extended_logger/message.rb', line 9 def prose @prose ||= block.() end |
#time ⇒ Object
Returns the value of attribute time
2 3 4 |
# File 'lib/extended_logger/message.rb', line 2 def time @time end |
Instance Method Details
#inspect ⇒ Object
5 6 7 |
# File 'lib/extended_logger/message.rb', line 5 def inspect "#<ExtendedLogger::Message prose=#{prose.inspect}, level=#{level}, time=#{time.iso8601}, label=#{label.inspect}>" end |