Class: ZabbixManager::Server
- Inherits:
-
Object
- Object
- ZabbixManager::Server
- Defined in:
- lib/zabbix_manager/classes/server.rb
Instance Attribute Summary collapse
-
#version ⇒ String
readonly
返回连接对应的 Zabbix API 版本。.
Instance Method Summary collapse
-
#initialize(client) ⇒ Server
constructor
使用客户端初始化服务信息,并立即读取 Zabbix API 版本。.
Constructor Details
#initialize(client) ⇒ Server
使用客户端初始化服务信息,并立即读取 Zabbix API 版本。
14 15 16 17 |
# File 'lib/zabbix_manager/classes/server.rb', line 14 def initialize(client) @client = client @version = @client.api_version end |
Instance Attribute Details
#version ⇒ String (readonly)
返回连接对应的 Zabbix API 版本。
8 9 10 |
# File 'lib/zabbix_manager/classes/server.rb', line 8 def version @version end |