Class: ZabbixApi::Server
- Inherits:
-
Object
- Object
- ZabbixApi::Server
- Defined in:
- lib/zabbixapi/classes/server.rb
Instance Attribute Summary collapse
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(client) ⇒ Server
constructor
A new instance of Server.
Constructor Details
#initialize(client) ⇒ Server
Returns a new instance of Server.
6 7 8 9 |
# File 'lib/zabbixapi/classes/server.rb', line 6 def initialize(client) @client = client @version = @client.api_request(:method => "apiinfo.version", :params => {}) end |
Instance Attribute Details
#version ⇒ Object (readonly)
Returns the value of attribute version.
4 5 6 |
# File 'lib/zabbixapi/classes/server.rb', line 4 def version @version end |