Permalink
Browse files

Added temporarily sample user class

  • Loading branch information...
1 parent b640210 commit 3c18a5d4fb653babd032c1b792e317dca91d5f62 @ehackman committed Sep 28, 2011
Showing with 12 additions and 0 deletions.
  1. +12 −0 example_user.rb
View
12 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.