Class: NodataMonitor::Alert
- Inherits:
-
Object
- Object
- NodataMonitor::Alert
- Defined in:
- lib/nodata-monitor.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#name ⇒ Object
Returns the value of attribute name.
-
#query ⇒ Object
Returns the value of attribute query.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(options) ⇒ Alert
constructor
A new instance of Alert.
Constructor Details
#initialize(options) ⇒ Alert
Returns a new instance of Alert.
21 22 23 24 25 26 |
# File 'lib/nodata-monitor.rb', line 21 def initialize @name = ['name'] @message = ['message'] @state = ['state'] @query = ['query'] end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
17 18 19 |
# File 'lib/nodata-monitor.rb', line 17 def @message end |
#name ⇒ Object
Returns the value of attribute name.
16 17 18 |
# File 'lib/nodata-monitor.rb', line 16 def name @name end |
#query ⇒ Object
Returns the value of attribute query.
19 20 21 |
# File 'lib/nodata-monitor.rb', line 19 def query @query end |
#state ⇒ Object
Returns the value of attribute state.
18 19 20 |
# File 'lib/nodata-monitor.rb', line 18 def state @state end |