class BBQueue::TestJob attr_accessor :x, :y def initialize(x, y) self.x = x self.y = y end def ==(test_object) [self.x, self.y] == [test_object.x, test_object.y] end def work x + y end end