Class: SPQR::EventMeta

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



16
17
18
# File 'lib/spqr/event.rb', line 16

def args
  @args
end

#classnameObject

Returns the value of attribute classname

Returns:

  • (Object)

    the current value of classname



16
17
18
# File 'lib/spqr/event.rb', line 16

def classname
  @classname
end

#packageObject

Returns the value of attribute package

Returns:

  • (Object)

    the current value of package



16
17
18
# File 'lib/spqr/event.rb', line 16

def package
  @package
end

#severityObject

Returns the value of attribute severity

Returns:

  • (Object)

    the current value of severity



16
17
18
# File 'lib/spqr/event.rb', line 16

def severity
  @severity
end