Sha256: e84555c5cad690591e0fe7e3a42efad0a8f718c76df000a5019f64b4e85333cf

Contents?: true

Size: 258 Bytes

Versions: 7

Compression:

Stored size: 258 Bytes

Contents

module Nmap
  #
  # Represents the Status of a {Host}.
  #
  class Status < Struct.new(:state, :reason)

    #
    # Converts the status to a String.
    #
    # @return [String]
    #   The state.
    #
    def to_s
      self.state.to_s
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby-nmap-0.9.3 lib/nmap/status.rb
ruby-nmap-0.9.2 lib/nmap/status.rb
ruby-nmap-0.9.1 lib/nmap/status.rb
ruby-nmap-0.9.0 lib/nmap/status.rb
ruby-nmap-0.8.0 lib/nmap/status.rb
ruby-nmap-0.7.0 lib/nmap/status.rb
ruby-nmap-0.6.0 lib/nmap/status.rb