blob: b31396db4b93e92458ce21cda9aeab744e95237c (
plain) (
tree)
|
|
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
|