Class: Nmap::XML::OSMatch
- Inherits:
-
Struct
- Object
- Struct
- Nmap::XML::OSMatch
- Defined in:
- lib/nmap/xml/os_match.rb
Overview
Represents a match for a specific OS.
Instance Attribute Summary collapse
-
#accuracy ⇒ Object
Returns the value of attribute accuracy.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#to_s ⇒ String
Converts the OS match to a String.
Instance Attribute Details
#accuracy ⇒ Object
Returns the value of attribute accuracy
10 11 12 |
# File 'lib/nmap/xml/os_match.rb', line 10 def accuracy @accuracy end |
#name ⇒ Object
Returns the value of attribute name
10 11 12 |
# File 'lib/nmap/xml/os_match.rb', line 10 def name @name end |
Instance Method Details
#to_s ⇒ String
Converts the OS match to a String.
18 19 20 |
# File 'lib/nmap/xml/os_match.rb', line 18 def to_s "#{self.name} (#{self.accuracy}%)" end |