Module: MatrixSdk::Protocols::SS
- Defined in:
- lib/matrix_sdk/protocols/ss.rb
Instance Method Summary collapse
-
#server_version ⇒ Object
Gets the server version.
Instance Method Details
#server_version ⇒ Object
Gets the server version
5 6 7 8 9 10 11 12 13 |
# File 'lib/matrix_sdk/protocols/ss.rb', line 5 def server_version MatrixSdk::Response.new(self, request(:get, :federation_v1, '/version').server).tap do |resp| resp.instance_eval <<-'CODE', __FILE__, __LINE__ + 1 def to_s "#{name} #{version}" end CODE end end |