Class: Logr::Event
- Inherits:
-
Object
- Object
- Logr::Event
- Defined in:
- lib/logr/event.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize(name, tags) ⇒ Event
constructor
A new instance of Event.
- #to_hash ⇒ Object
- #with(tags) ⇒ Object
Constructor Details
#initialize(name, tags) ⇒ Event
Returns a new instance of Event.
5 6 7 |
# File 'lib/logr/event.rb', line 5 def initialize(name, ) @name, @tags = name, end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/logr/event.rb', line 3 def name @name end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
3 4 5 |
# File 'lib/logr/event.rb', line 3 def @tags end |