Created
February 4, 2013 20:59
-
-
Save adrianmoses/4709677 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Tackit | |
class User | |
def initialize(user, pass) | |
@user = user | |
@pass = pass | |
@token = Token.new.find_token(@user, @pass) | |
end | |
def has_token? | |
@token | |
end | |
def get_auth_token | |
@token = Gist.authorize(@user, @pass) | |
Token.new.save_token(@user, @pass, @token) | |
@token | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment