Class: Nmap::TcpSequence
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.
24 25 26 |
# File 'lib/nmap/tcp_sequence.rb', line 24 def difficulty @node['difficulty'] end |
#index ⇒ Numeric
Returns The difficulty index from nmap.
12 13 14 15 16 |
# File 'lib/nmap/tcp_sequence.rb', line 12 def index @index ||= if (index_string = @node['index']) index_string.to_i end end |
#to_s ⇒ String
Converts the TcpSequence class to a String.
36 37 38 |
# File 'lib/nmap/tcp_sequence.rb', line 36 def to_s "index=#{index} difficulty=#{difficulty.inspect} values=#{values.inspect}" end |