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) ⇒ 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

#versionObject (readonly)

Returns the value of attribute version.



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

def version
  @version
end