Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (10 sloc) 205 Bytes
class User
attr_accessor :name, :email
def initialize(attributes = {})
@name = attributes[:name]
@email = attributes[:email]
end
def formatted_email
"#{@name} <#{@email}>"
end
end