Class: ZabbixApi::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/zabbixapi/classes/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ ZabbixApi::Client, String

Initializes a new Server object with ZabbixApi Client and fetches Zabbix Server API version

Parameters:


11
12
13
14
# File 'lib/zabbixapi/classes/server.rb', line 11

def initialize(client)
  @client = client
  @version = @client.api_version()
end

Instance Attribute Details

#versionString (readonly)

Returns:

  • (String)

4
5
6
# File 'lib/zabbixapi/classes/server.rb', line 4

def version
  @version
end