Class: SPQR::EventMeta
- Inherits:
-
Struct
- Object
- Struct
- SPQR::EventMeta
- Defined in:
- lib/spqr/event.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#classname ⇒ Object
Returns the value of attribute classname.
-
#package ⇒ Object
Returns the value of attribute package.
-
#severity ⇒ Object
Returns the value of attribute severity.
Instance Method Summary collapse
-
#initialize(*a) ⇒ EventMeta
constructor
A new instance of EventMeta.
Constructor Details
#initialize(*a) ⇒ EventMeta
Returns a new instance of EventMeta.
17 18 19 20 21 |
# File 'lib/spqr/event.rb', line 17 def initialize(*a) super *a self.args ||= [] self.severity ||= :alert end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args
16 17 18 |
# File 'lib/spqr/event.rb', line 16 def args @args end |
#classname ⇒ Object
Returns the value of attribute classname
16 17 18 |
# File 'lib/spqr/event.rb', line 16 def classname @classname end |
#package ⇒ Object
Returns the value of attribute package
16 17 18 |
# File 'lib/spqr/event.rb', line 16 def package @package end |
#severity ⇒ Object
Returns the value of attribute severity
16 17 18 |
# File 'lib/spqr/event.rb', line 16 def severity @severity end |