Class: Nagios::MkLiveStatus::Wait::Object
- Inherits:
-
Nagios::MkLiveStatus::Wait
- Object
- Nagios::MkLiveStatus::Wait
- Nagios::MkLiveStatus::Wait::Object
- Includes:
- Nagios::MkLiveStatus
- Defined in:
- lib/nagios_mklivestatus/wait/object.rb
Overview
This class is used to make a wait object.
- Author
-
Esco-lan Team ([email protected])
- Copyright
-
Copyright © 2012 GIP RECIA
- License
-
General Public Licence
Instance Method Summary collapse
-
#initialize(name) ⇒ Object
constructor
Create a new wait object expression.
-
#to_s ⇒ Object
Convert the current object expression into a nagios query string.
Methods included from Nagios::MkLiveStatus
Constructor Details
#initialize(name) ⇒ Object
Create a new wait object expression.
13 14 15 16 17 18 19 20 |
# File 'lib/nagios_mklivestatus/wait/object.rb', line 13 def initialize(name) if not name raise QueryException.new("The object value must be set for the wait operation.") end @name = name end |
Instance Method Details
#to_s ⇒ Object
Convert the current object expression into a nagios query string.
WaitObject: ...
26 27 28 |
# File 'lib/nagios_mklivestatus/wait/object.rb', line 26 def to_s return "WaitObject: "+@name end |