Class: Utracker::Logger::Event

Inherits:
Struct
  • Object
show all
Defined in:
lib/utracker/logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#datetimeObject

Returns the value of attribute datetime

Returns:

  • (Object)

    the current value of datetime



3
4
5
# File 'lib/utracker/logger.rb', line 3

def datetime
  @datetime
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



3
4
5
# File 'lib/utracker/logger.rb', line 3

def description
  @description
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



3
4
5
# File 'lib/utracker/logger.rb', line 3

def message
  @message
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



3
4
5
# File 'lib/utracker/logger.rb', line 3

def options
  @options
end

#serviceObject

Returns the value of attribute service

Returns:

  • (Object)

    the current value of service



3
4
5
# File 'lib/utracker/logger.rb', line 3

def service
  @service
end

Instance Method Details

#payloadObject



4
5
6
7
# File 'lib/utracker/logger.rb', line 4

def payload
  return if options[:hide_payload]
  Utracker.config[:formatter][message.content]
end