Skip to content

Commit

Permalink
Added temporarily sample user class
Browse files Browse the repository at this point in the history
  • Loading branch information
ehackman committed Sep 28, 2011
1 parent b640210 commit 3c18a5d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions example_user.rb
@@ -0,0 +1,12 @@
class User
attr_accessor :name, :email

def initialize(attributes = {})
@name = attributes[:name]
@email = attributes[:email]
end

def formatted_email
"#{@name} <#{@email}>"
end
end

0 comments on commit 3c18a5d

Please sign in to comment.