Class: Tweetable::Authorization
- Inherits:
-
Persistable
- Object
- Ohm::Model
- Persistable
- Tweetable::Authorization
- Defined in:
- lib/tweetable/authorization.rb
Instance Method Summary collapse
Methods inherited from Persistable
#client, #config, find_or_create, #needs_update?
Instance Method Details
#user_id ⇒ Object
8 9 10 11 |
# File 'lib/tweetable/authorization.rb', line 8 def user_id return if self.oauth_access_token.nil? self.oauth_access_token.split('-')[0] # tokens start with ID as in: 13705052-bz9IrOTwWbLgWHQDKkGnVd815ybTujc0QeXMlh7ZJ end |