Class: Nmap::TcpSequence
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::Sequence
Instance Method Details
#difficulty ⇒ String
Returns The difficulty description from nmap.
29 30 31 |
# File 'lib/nmap/tcp_sequence.rb', line 29 def difficulty @node['difficulty'] end |
#index ⇒ Numeric
Returns The difficulty index from nmap.
17 18 19 20 21 |
# File 'lib/nmap/tcp_sequence.rb', line 17 def index @index ||= if (index_string = @node['index']) index_string.to_i end end |
#to_s ⇒ String
Converts the TcpSequence class to a String.
41 42 43 |
# File 'lib/nmap/tcp_sequence.rb', line 41 def to_s "index=#{index} difficulty=#{difficulty.inspect} values=#{values.inspect}" end |