Module: Zabbix

Extended by:
WrAPI::Configuration, WrAPI::RespondTo
Defined in:
lib/zabbix.rb,
lib/zabbix/api.rb,
lib/zabbix/error.rb,
lib/zabbix/client.rb,
lib/zabbix/request.rb,
lib/zabbix/version.rb,
lib/zabbix/authentication.rb

Defined Under Namespace

Modules: Authentication, Request Classes: API, AuthenticationError, Client, ConfigurationError, RPCError, ZabbixError

Constant Summary collapse

DEFAULT_UA =
"Ruby Zabbix API wrapper #{Zabbix::VERSION}".freeze
VERSION =
'0.3.3'

Class Method Summary collapse

Class Method Details

.client(options = {}) ⇒ Zabbix::Client

Returns:



14
15
16
17
18
# File 'lib/zabbix.rb', line 14

def self.client(options = {})
  Zabbix::Client.new({
    user_agent: DEFAULT_UA
  }.merge(options))
end

.resetObject



20
21
22
23
24
# File 'lib/zabbix.rb', line 20

def self.reset
  super
  self.endpoint     = nil
  self.user_agent   = DEFAULT_UA
end