Method: Chatrix::Matrix#versions

Defined in:
lib/chatrix/matrix.rb

#versionsArray<String>

Gets supported API versions from the server.

Returns:

  • (Array<String>)

    an array with the supported versions.



103
104
105
106
107
# File 'lib/chatrix/matrix.rb', line 103

def versions
  make_request(
    :get, '/versions', base: "#{@homeserver}/_matrix/client"
  )['versions']
end