Class: Nmap::XML::Status

Inherits:
Struct
  • Object
show all
Defined in:
lib/nmap/xml/status.rb

Overview

Represents the Status of a Host.

Since:

  • 1.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



10
11
12
# File 'lib/nmap/xml/status.rb', line 10

def reason
  @reason
end

#reason_ttlObject

Returns the value of attribute reason_ttl

Returns:

  • (Object)

    the current value of reason_ttl



10
11
12
# File 'lib/nmap/xml/status.rb', line 10

def reason_ttl
  @reason_ttl
end

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



10
11
12
# File 'lib/nmap/xml/status.rb', line 10

def state
  @state
end

Instance Method Details

#to_sString

Converts the status to a String.

Returns:

  • (String)

    The state.

Since:

  • 1.0.0



18
19
20
# File 'lib/nmap/xml/status.rb', line 18

def to_s
  self.state.to_s
end