Sha256: 61e09ef3b498a9f1856c5c28c496f6c88fc1e32fb07f9b7cf8269cab4e9aed17

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 Bytes

Contents

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

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

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-nmap-1.0.2 lib/nmap/xml/status.rb
ruby-nmap-1.0.1 lib/nmap/xml/status.rb
ruby-nmap-1.0.0 lib/nmap/xml/status.rb