Skip to content

Commit

Permalink
Re-add the Client.logout method (#118)
Browse files Browse the repository at this point in the history
* re-add client logout method - this was inexplicably removed in commit ac4e854

* re-add client logout method - this was inexplicably removed in commit ac4e854

Co-authored-by: Dave Parker <[email protected]>
  • Loading branch information
svdasein and Dave Parker authored Apr 2, 2021
1 parent c061b89 commit e80fe7a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/zabbixapi/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ def debug?
return ! @options || @options[:debug]
end

# Log out from the Zabbix Server
#
# @return [Boolean]
#
def logout
api_request(
:method => 'user.logout',
:params => []
)
end

# Initializes a new Client object
#
# @param options [Hash]
Expand Down

0 comments on commit e80fe7a

Please sign in to comment.