Class: SSHScan::SSHLib::Dropbear::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/ssh_scan/ssh_lib/dropbear.rb

Instance Method Summary collapse

Constructor Details

#initialize(version_string) ⇒ Version

Returns a new instance of Version.



7
8
9
10
11
12
13
# File 'lib/ssh_scan/ssh_lib/dropbear.rb', line 7

def initialize(version_string)
  if version_string == nil
    @version_string = "unknown"
  else
    @version_string = version_string
  end
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/ssh_scan/ssh_lib/dropbear.rb', line 14

def to_s
  @version_string
end