Guest User

Untitled

a guest
Jan 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #initialize a new object for a type of GCResource like: GCAccount
  2.  
  3. attributes = {:uid => uid, :type => 'facebook, :email => email, :username => username, :access_key => access_key}
  4. account= Chute::GCAccount.new(attributes)
  5.  
  6. #create account
  7. #if successful, account is created
  8. #if unsuccessful account.errors contains the details
  9. account.create
Add Comment
Please, Sign In to add comment