# File lib/aeolus_image/model/warehouse/warehouse_model.rb, line 23 def ==(other_obj) # If the objects have different instance variables defined, they're definitely not == return false unless instance_variables.sort == other_obj.instance_variables.sort # Otherwise, ensure that they're all the same instance_variables.each do |iv| return false unless other_obj.instance_variable_get(iv) == instance_variable_get(iv) end # They have the same instance variables and values, so they're equal true end