1
0
postdoc/app/models/email_address.rb

11 lines
177 B
Ruby
Raw Permalink Normal View History

2020-12-06 20:49:03 +01:00
class EmailAddress
attr_reader :email, :name
def initialize(email: ,name: nil)
@email = email
@name = name
end
def to_s
"<#{email}> #{name}".strip
end
end