README.md in zabbix-api-simple-0.1.2 vs README.md in zabbix-api-simple-0.1.3

- old
+ new

@@ -53,10 +53,10 @@ opt :user, "User name to authenticate", type: :string, required: true opt :pass, "Pass to auth user with", type: :string, required: true opt :hostname, "Host name to search for", type: :string, required: true end -api = Zabbix::Api::Client.new(opts[:url]) +api = Zabbix::Api::Client.new(url: opts[:url]) api.login(user: opts[:user],pass:opts[:pass]) hosts = api.host.get(search: {host: opts[:hostname]}) # return value is an OpenStruct