Sha256: 464e8bf590a97df1f4018fc231197fa2142fa0c553da8efaad490e5c65081c06

Contents?: true

Size: 308 Bytes

Versions: 8

Compression:

Stored size: 308 Bytes

Contents

module Nmap
  #
  # Represents a match for a specific {OS}.
  #
  class OSMatch < Struct.new(:name, :accuracy)

    #
    # Converts the OS match to a String.
    #
    # @return [String]
    #   The String form of the OS match.
    #
    def to_s
      "#{self.name} (#{self.accuracy}%)"
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby-nmap-0.10.0 lib/nmap/os_match.rb
ruby-nmap-0.9.3 lib/nmap/os_match.rb
ruby-nmap-0.9.2 lib/nmap/os_match.rb
ruby-nmap-0.9.1 lib/nmap/os_match.rb
ruby-nmap-0.9.0 lib/nmap/os_match.rb
ruby-nmap-0.8.0 lib/nmap/os_match.rb
ruby-nmap-0.7.0 lib/nmap/os_match.rb
ruby-nmap-0.6.0 lib/nmap/os_match.rb