Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #initialize a new object for a type of GCResource like: GCAccount
- attributes = {:uid => uid, :type => 'facebook, :email => email, :username => username, :access_key => access_key}
- account= Chute::GCAccount.new(attributes)
- #create account
- #if successful, account is created
- #if unsuccessful account.errors contains the details
- account.create
Add Comment
Please, Sign In to add comment