module Oga
  module XML
    ##
    # The Namespace class contains information about XML namespaces such as the
    # name and URI.
    #
    class Namespace
      attr_accessor :name, :uri

      ##
      # @param [Hash] options
      #
      # @option options [String] :name
      # @option options [String] :uri
      #
      def initialize(options = {})
        @name = options[:name]
        @uri  = options[:uri]
      end

      ##
      # @return [String]
      #
      def to_s
        return name.to_s
      end

      ##
      # @return [String]
      #
      def inspect
        return "Namespace(name: #{name.inspect})"
      end
    end # Namespace
  end # XML
end # Oga

module Oga
  module XML
    ##
    # The Namespace class contains information about XML namespaces such as the
    # name and URI.
    #
    class Namespace
      attr_accessor :name

      ##
      # @param [Hash] options
      #
      # @option options [String] :name
      #
      def initialize(options = {})
        @name = options[:name]
      end

      ##
      # @return [String]
      #
      def to_s
        return name.to_s
      end

      ##
      # @return [String]
      #
      def inspect
        return "Namespace(name: #{name.inspect})"
      end
    end # Namespace
  end # XML
end # Oga

Remove the uri attribute from Namespace.
Remove the uri attribute from Namespace.

Oga won't be handling URIs any time soon. The rationale is that they server zero
purpose when it comes to just parsing XML. Another goal of Oga is to make it
easy to modify and reserialize documents back to XML. If namespaces would also
store the URIs this would make this process more difficult.
