class Nmap::XML::TcpSequence

Represents a TCP sequence number.

@since 1.0.0

Public Instance Methods

difficulty() click to toggle source

@return [String]

The difficulty description from nmap

@since 0.5.0

# File lib/nmap/xml/tcp_sequence.rb, line 30
def difficulty
  @difficulty ||= @node['difficulty']
end
index() click to toggle source

@return [Numeric]

The difficulty index from nmap

@since 0.5.0

# File lib/nmap/xml/tcp_sequence.rb, line 18
def index
  @index ||= if (index_string = @node['index'])
               index_string.to_i
             end
end
to_s() click to toggle source

Converts the TcpSequence class to a String.

@return [String]

The String form of the object.

@since 0.5.0

# File lib/nmap/xml/tcp_sequence.rb, line 42
def to_s
  "index=#{index} difficulty=#{difficulty.inspect} values=#{values.inspect}"
end