lib/vnstat/interface.rb in vnstat-ruby-2.0.0 vs lib/vnstat/interface.rb in vnstat-ruby-3.0.0
- old
+ new
@@ -33,9 +33,10 @@
#
# @param [Interface] other The compared object.
# @return [true, false]
def ==(other)
return false unless other.respond_to?(:id)
+
id == other.id
end
##
# Refreshes data cached in the current instance.