Class: Gallus::Event
- Inherits:
-
Struct
- Object
- Struct
- Gallus::Event
- Defined in:
- lib/gallus/event.rb
Instance Attribute Summary collapse
-
#level ⇒ Object
Returns the value of attribute level.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#message ⇒ Object
Returns the value of attribute message.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#recorded_at ⇒ Object
readonly
Returns the value of attribute recorded_at.
Instance Method Summary collapse
-
#initialize ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize ⇒ Event
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
#level ⇒ Object
Returns the value of attribute level
2 3 4 |
# File 'lib/gallus/event.rb', line 2 def level @level end |
#logger ⇒ Object
Returns the value of attribute logger
2 3 4 |
# File 'lib/gallus/event.rb', line 2 def logger @logger end |
#message ⇒ Object
Returns the value of attribute message
2 3 4 |
# File 'lib/gallus/event.rb', line 2 def end |
#payload ⇒ Object
Returns the value of attribute payload
2 3 4 |
# File 'lib/gallus/event.rb', line 2 def payload @payload end |
#recorded_at ⇒ Object (readonly)
Returns the value of attribute recorded_at.
3 4 5 |
# File 'lib/gallus/event.rb', line 3 def recorded_at @recorded_at end |