diff options
Diffstat (limited to 'lib/custodian/protocoltest/ftp.rb')
-rw-r--r-- | lib/custodian/protocoltest/ftp.rb | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/lib/custodian/protocoltest/ftp.rb b/lib/custodian/protocoltest/ftp.rb index 1d60e43..89b4a2b 100644 --- a/lib/custodian/protocoltest/ftp.rb +++ b/lib/custodian/protocoltest/ftp.rb @@ -13,6 +13,12 @@ class FTPTest < TCPTest # + # The line from which we were constructed. + # + attr_reader :line + + + # # The host to test against. # attr_reader :host @@ -26,10 +32,17 @@ class FTPTest < TCPTest + # # Constructor # def initialize( line ) + + # + # Save the line + # + @line = line + # # Save the host # @@ -62,11 +75,7 @@ class FTPTest < TCPTest # Convert this class to JSON such that it may be serialized. # def to_json - hash = { - :test_type => 'ftp', - :test_target => @host, - :test_port => @port, - } + hash = { :line => @line } hash.to_json end |