diff options
Diffstat (limited to 'lib/custodian/protocoltest/tcp.rb')
-rw-r--r-- | lib/custodian/protocoltest/tcp.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/custodian/protocoltest/tcp.rb b/lib/custodian/protocoltest/tcp.rb index 9e141fe..5f29b7f 100644 --- a/lib/custodian/protocoltest/tcp.rb +++ b/lib/custodian/protocoltest/tcp.rb @@ -87,6 +87,22 @@ class TCPTest < ProtocolTest # + # Convert this class to JSON such that it may be serialized. + # + def to_json + hash = { + :test_type => 'tcp', + :test_target => @host, + :test_port => @port, + :banner => @banner + } + hash.to_json + end + + + + + # # Run the TCP-protocol test. # def run_test |