Class: Himari::LogLine

Inherits:
Struct
  • Object
show all
Defined in:
lib/himari/log_line.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



4
5
6
# File 'lib/himari/log_line.rb', line 4

def data
  @data
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



4
5
6
# File 'lib/himari/log_line.rb', line 4

def message
  @message
end

Instance Method Details

#to_sObject



5
6
7
# File 'lib/himari/log_line.rb', line 5

def to_s
  "#{message} -- #{JSON.generate(data || {})}"
end