Class: Nmap::XML::TcpSequence
- Defined in:
- lib/nmap/xml/tcp_sequence.rb
Overview
Represents a TCP sequence number.
Instance Method Summary collapse
-
#difficulty ⇒ String
The difficulty description from nmap.
-
#index ⇒ Numeric
The difficulty index from nmap.
-
#to_s ⇒ String
Converts the TcpSequence class to a String.
Methods inherited from Sequence
#description, #initialize, #values
Constructor Details
This class inherits a constructor from Nmap::XML::Sequence
Instance Method Details
#difficulty ⇒ String
Returns The difficulty description from nmap.
32 33 34 |
# File 'lib/nmap/xml/tcp_sequence.rb', line 32 def difficulty @difficulty ||= @node['difficulty'] end |
#index ⇒ Numeric
Returns The difficulty index from nmap.
20 21 22 23 24 |
# File 'lib/nmap/xml/tcp_sequence.rb', line 20 def index @index ||= if (index_string = @node['index']) index_string.to_i end end |
#to_s ⇒ String
Converts the TcpSequence class to a String.
44 45 46 |
# File 'lib/nmap/xml/tcp_sequence.rb', line 44 def to_s "index=#{index} difficulty=#{difficulty.inspect} values=#{values.inspect}" end |