Class: OauthToken
- Defined in:
- app/models/oauth_token.rb
Instance Attribute Summary collapse
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
Methods inherited from BaseNew
Proxy, install_data, install_data_hooks, #with_timestamps?
Instance Attribute Details
#secret ⇒ Object
Returns the value of attribute secret.
4 5 6 |
# File 'app/models/oauth_token.rb', line 4 def secret @secret end |
#token ⇒ Object
Returns the value of attribute token.
3 4 5 |
# File 'app/models/oauth_token.rb', line 3 def token @token end |
Instance Method Details
#generate_keys ⇒ Object
6 7 8 9 |
# File 'app/models/oauth_token.rb', line 6 def generate_keys self.token = OAuth::Helper.generate_key(40)[0,40] self.secret = OAuth::Helper.generate_key(40)[0,40] end |