def each_address
      return enum_for(__method__) unless block_given?

      @node.xpath("address[@addr]").each do |addr|
        address = Address.new(
          addr['addrtype'].to_sym,
          addr['addr'],
          addr['vendor']
        )

        yield address
      end

      return self
    end
def each_address
      return enum_for(__method__) unless block_given?

      @node.xpath("address[@addr]").each do |addr|
        address = Address.new(
          addr['addrtype'].to_sym,
          addr['addr'],
          addr['vendor']
        )

        yield address
      end

      return self
    end
Parses each address of the host.

 @yield [addr]
   Each parsed address will be pass to a given block.

 @yieldparam [Address] addr
   A address of the host.

 @return [Host, Enumerator]
   The host.
   If no block was given, an enumerator will be returned.