Class: Livestatus::BaseHandler
- Inherits:
-
Object
- Object
- Livestatus::BaseHandler
show all
- Defined in:
- lib/livestatus/handler.rb
Instance Method Summary
collapse
Instance Method Details
#command(cmd, time = nil) ⇒ Object
10
11
12
13
|
# File 'lib/livestatus/handler.rb', line 10
def command(cmd, time = nil)
time = Time.now.to_i unless time
query(:command, "[#{time}] #{cmd}")
end
|
#get(table_name, options = {}) ⇒ Object
6
7
8
|
# File 'lib/livestatus/handler.rb', line 6
def get(table_name, options = {})
query(:get, table_name.to_s, options)
end
|