Class: Nmap::OSClass
- Inherits:
-
Struct
- Object
- Struct
- Nmap::OSClass
- Defined in:
- lib/nmap/os_class.rb
Overview
Represents an OS class.
Instance Attribute Summary collapse
-
#accuracy ⇒ Object
Returns the value of attribute accuracy.
-
#family ⇒ Object
Returns the value of attribute family.
-
#type ⇒ Object
Returns the value of attribute type.
-
#vendor ⇒ Object
Returns the value of attribute vendor.
Instance Method Summary collapse
-
#to_s ⇒ String
Converts the OS class to a String.
Instance Attribute Details
#accuracy ⇒ Object
Returns the value of attribute accuracy
5 6 7 |
# File 'lib/nmap/os_class.rb', line 5 def accuracy @accuracy end |
#family ⇒ Object
Returns the value of attribute family
5 6 7 |
# File 'lib/nmap/os_class.rb', line 5 def family @family end |
#type ⇒ Object
Returns the value of attribute type
5 6 7 |
# File 'lib/nmap/os_class.rb', line 5 def type @type end |
#vendor ⇒ Object
Returns the value of attribute vendor
5 6 7 |
# File 'lib/nmap/os_class.rb', line 5 def vendor @vendor end |
Instance Method Details
#to_s ⇒ String
Converts the OS class to a String.
13 14 15 |
# File 'lib/nmap/os_class.rb', line 13 def to_s "#{self.type} #{self.vendor} (#{self.accuracy}%)" end |