Class: Istat::Frames::ConnectionTestResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/istat/frames/connection_test.rb

Constant Summary

Constants inherited from Base

Base::DOCTYPE

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_s

Constructor Details

This class inherits a constructor from Istat::Frames::Base

Instance Method Details

#success?Boolean

check for an empty frame, that will be returned by the server

Returns:

  • (Boolean)

    ture if the connection was successful established



31
32
33
# File 'lib/istat/frames/connection_test.rb', line 31

def success?
  @root.to_a.empty?
end