Skip to content
Snippets Groups Projects
Verified Commit 790cb5f4 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Add missing docs for Api#protocol?

parent 20fdec7c
Branches
Tags
No related merge requests found
...@@ -153,6 +153,14 @@ module MatrixSdk ...@@ -153,6 +153,14 @@ module MatrixSdk
)) ))
end end
# Check if a protocol is enabled on the API connection
#
# @example Checking for identity server API support
# api.protocol? :IS
# # => false
#
# @param protocol [Symbol] The protocol to check
# @return [Boolean] Is the protocol enabled
def protocol?(protocol) def protocol?(protocol)
protocols.include? protocol protocols.include? protocol
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment