diff options
Diffstat (limited to 'lib/custodian/protocoltest/jabber.rb')
-rw-r--r-- | lib/custodian/protocoltest/jabber.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/custodian/protocoltest/jabber.rb b/lib/custodian/protocoltest/jabber.rb index a9920f0..1aef8b5 100644 --- a/lib/custodian/protocoltest/jabber.rb +++ b/lib/custodian/protocoltest/jabber.rb @@ -58,6 +58,21 @@ class JABBERTest < TCPTest # + # Convert this class to JSON such that it may be serialized. + # + def to_json + hash = { + :test_type => 'jabber', + :test_target => @host, + :test_port => @port, + } + hash.to_json + end + + + + + # # Run the TCP-protocol test. # def run_test |