lib/dispatch-rider/message.rb in dispatch-rider-2.1.0 vs lib/dispatch-rider/message.rb in dispatch-rider-2.2.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
# This class represents a message. All other objects dela with passing around instances of this class.
# A message must have a subject and a body. The subject represents the handlers name and the body represents
# the payload of the process method in the handler.
# When messages are stored in the queues, they are serialized.
module DispatchRider
@@ -25,9 +27,10 @@
attributes
end
def ==(other)
return false unless other.respond_to? :attributes
+
attributes == other.attributes
end
end
end