1
0
postdoc/app/models/email_address.rb
2020-12-06 21:05:11 +01:00

11 lines
177 B
Ruby

class EmailAddress
attr_reader :email, :name
def initialize(email: ,name: nil)
@email = email
@name = name
end
def to_s
"<#{email}> #{name}".strip
end
end