1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activejob/test/models/person.rb
2014-08-17 23:10:45 +00:00

17 lines
247 B
Ruby

class Person
include GlobalID::Identification
attr_reader :id
def self.find(id)
new(id)
end
def initialize(id)
@id = id
end
def ==(other_person)
other_person.is_a?(Person) && id.to_s == other_person.id.to_s
end
end