Module: Twuckoo::TwitterOauth
- Defined in:
- lib/twuckoo/twitter_oauth_module.rb
Class Method Summary collapse
-
._tweet(message, options) ⇒ Object
TODO: This should be a class and instantiated as @tweeter in Twuckoo::Runner.
- .latest_tweet(options) ⇒ Object
Class Method Details
._tweet(message, options) ⇒ Object
TODO: This should be a class and instantiated as @tweeter in Twuckoo::Runner
7 8 9 |
# File 'lib/twuckoo/twitter_oauth_module.rb', line 7 def self._tweet(, ) client().update() end |
.latest_tweet(options) ⇒ Object
11 12 13 14 |
# File 'lib/twuckoo/twitter_oauth_module.rb', line 11 def self.latest_tweet() last_tweet = client().home_timeline.first last_tweet['text'] if last_tweet end |