Class: Nmap::Status
- Inherits:
-
Struct
- Object
- Struct
- Nmap::Status
- Defined in:
- lib/nmap/status.rb
Overview
Represents the Status of a Host.
Instance Attribute Summary collapse
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
-
#to_s ⇒ String
Converts the status to a String.
Instance Attribute Details
#reason ⇒ Object
Returns the value of attribute reason
5 6 7 |
# File 'lib/nmap/status.rb', line 5 def reason @reason end |
#state ⇒ Object
Returns the value of attribute state
5 6 7 |
# File 'lib/nmap/status.rb', line 5 def state @state end |
Instance Method Details
#to_s ⇒ String
Converts the status to a String.
13 14 15 |
# File 'lib/nmap/status.rb', line 13 def to_s self.state.to_s end |