Skip to content

Instantly share code, notes, and snippets.

Created April 1, 2012 16:25
Show Gist options
  • Save anonymous/2276779 to your computer and use it in GitHub Desktop.
Save anonymous/2276779 to your computer and use it in GitHub Desktop.
class Users < ActiveRecord::Base
attr_accessor :id, :firstname, :lastname, :email
def initialize(id, firstname, lastname, email)
@id = id
@firstname = firstname
@lastname = lastname
@email = email
end
def to_s
@firstname + " " + @lastname
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment