lib/zabbixapi/client.rb in zabbixapi-0.5.9 vs lib/zabbixapi/client.rb in zabbixapi-0.6.0

- old
+ new

@@ -1,6 +1,7 @@ require 'json' +require 'net/https' require 'net/http' class ZabbixApi class Client @@ -14,10 +15,10 @@ @version ||= api_request(:method => "apiinfo.version", :params => {}) end def auth api_request( - :method => 'user.authenticate', + :method => 'user.authenticate', :params => { :user => @options[:user], :password => @options[:password], } )