Class: RRDNotifier::Alarm
- Inherits:
-
Object
- Object
- RRDNotifier::Alarm
- Defined in:
- lib/rrd-grapher/notifier/alarms.rb
Overview
An active alarm.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#packet ⇒ Object
the packet which triggered the alarm.
Instance Method Summary collapse
-
#initialize(p) ⇒ Alarm
constructor
A new instance of Alarm.
- #method_missing(m, *args) ⇒ Object
Constructor Details
#initialize(p) ⇒ Alarm
Returns a new instance of Alarm.
10 11 12 |
# File 'lib/rrd-grapher/notifier/alarms.rb', line 10 def initialize(p) @packet = p end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args) ⇒ Object
14 15 16 17 18 |
# File 'lib/rrd-grapher/notifier/alarms.rb', line 14 def method_missing(m, *args) if packet packet.send(m, *args) end end |
Instance Attribute Details
#packet ⇒ Object
the packet which triggered the alarm
8 9 10 |
# File 'lib/rrd-grapher/notifier/alarms.rb', line 8 def packet @packet end |