Class: Nagios::MkLiveStatus::Wait::Object

Inherits:
Nagios::MkLiveStatus::Wait show all
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

Methods included from Nagios::MkLiveStatus

init, #logger

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_sObject

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