Class: Gallus::Event

Inherits:
Struct
  • Object
show all
Defined in:
lib/gallus/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEvent

Returns a new instance of Event.



5
6
7
8
# File 'lib/gallus/event.rb', line 5

def initialize(*)
  super
  @recorded_at = Time.now.utc
end

Instance Attribute Details

#levelObject

Returns the value of attribute level

Returns:

  • (Object)

    the current value of level



2
3
4
# File 'lib/gallus/event.rb', line 2

def level
  @level
end

#loggerObject

Returns the value of attribute logger

Returns:

  • (Object)

    the current value of logger



2
3
4
# File 'lib/gallus/event.rb', line 2

def logger
  @logger
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



2
3
4
# File 'lib/gallus/event.rb', line 2

def message
  @message
end

#payloadObject

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



2
3
4
# File 'lib/gallus/event.rb', line 2

def payload
  @payload
end

#recorded_atObject (readonly)

Returns the value of attribute recorded_at.



3
4
5
# File 'lib/gallus/event.rb', line 3

def recorded_at
  @recorded_at
end