Sha256: 59417d4c28a8498ec07687eaafb7bf4c325c779e15049cffdec42bb80c4b5db8
Contents?: true
Size: 941 Bytes
Versions: 1
Compression:
Stored size: 941 Bytes
Contents
# frozen_string_literal: true require_relative 'sequence' module Nmap class XML # # Represents a TCP sequence number. # # @since 1.0.0 # class TcpSequence < Sequence # # @return [Numeric] # The difficulty index from nmap # # @since 0.5.0 # def index @index ||= if (index_string = @node['index']) index_string.to_i end end # # @return [String] # The difficulty description from nmap # # @since 0.5.0 # def difficulty @difficulty ||= @node['difficulty'] end # # Converts the TcpSequence class to a String. # # @return [String] # The String form of the object. # # @since 0.5.0 # def to_s "index=#{index} difficulty=#{difficulty.inspect} values=#{values.inspect}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-nmap-1.0.3 | lib/nmap/xml/tcp_sequence.rb |