lib/gummi/entity.rb in gummi-0.1.0 vs lib/gummi/entity.rb in gummi-0.1.1
- old
+ new
@@ -6,7 +6,15 @@
include Repobahn::Entity
end
attr_accessor :id
attr_accessor :version
+
+ def ==(other)
+ other &&
+ self.id == other.id &&
+ self.version == other.version &&
+ self.attributes == other.attributes
+ end
+
end
-end
\ No newline at end of file
+end