Module: TwitterAuth::OauthUser
- Included in:
- GenericUser
- Defined in:
- app/models/twitter_auth/oauth_user.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'app/models/twitter_auth/oauth_user.rb', line 3 def self.included(base) base.class_eval do attr_protected :access_token, :access_secret end base.extend TwitterAuth::OauthUser::ClassMethods base.extend TwitterAuth::Dispatcher::Shared end |
Instance Method Details
#token ⇒ Object
42 43 44 |
# File 'app/models/twitter_auth/oauth_user.rb', line 42 def token OAuth::AccessToken.new(TwitterAuth.consumer, access_token, access_secret) end |