Class: Nmap::Status

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

Overview

Represents the Status of a Host.

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



5
6
7
# File 'lib/nmap/status.rb', line 5

def reason
  @reason
end

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



5
6
7
# File 'lib/nmap/status.rb', line 5

def state
  @state
end

Instance Method Details

#to_sString

Converts the status to a String.

Returns:

  • (String)

    The state.



13
14
15
# File 'lib/nmap/status.rb', line 13

def to_s
  self.state.to_s
end