Class: Nmap::XML::Status
- Inherits:
-
Struct
- Object
- Struct
- Nmap::XML::Status
- Defined in:
- lib/nmap/xml/status.rb
Overview
Represents the Status of a Host.
Instance Attribute Summary collapse
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#reason_ttl ⇒ Object
Returns the value of attribute reason_ttl.
-
#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
10 11 12 |
# File 'lib/nmap/xml/status.rb', line 10 def reason @reason end |
#reason_ttl ⇒ Object
Returns the value of attribute reason_ttl
10 11 12 |
# File 'lib/nmap/xml/status.rb', line 10 def reason_ttl @reason_ttl end |
#state ⇒ Object
Returns the value of attribute state
10 11 12 |
# File 'lib/nmap/xml/status.rb', line 10 def state @state end |
Instance Method Details
#to_s ⇒ String
Converts the status to a String.
18 19 20 |
# File 'lib/nmap/xml/status.rb', line 18 def to_s self.state.to_s end |