Class: Himari::LogLine
- Inherits:
-
Struct
- Object
- Struct
- Himari::LogLine
- Defined in:
- lib/himari/log_line.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
4 5 6 |
# File 'lib/himari/log_line.rb', line 4 def data @data end |
#message ⇒ Object
Returns the value of attribute message
4 5 6 |
# File 'lib/himari/log_line.rb', line 4 def @message end |
Instance Method Details
#to_s ⇒ Object
5 6 7 |
# File 'lib/himari/log_line.rb', line 5 def to_s "#{} -- #{JSON.generate(data || {})}" end |