Class: ReplacerBot::TwitterClient
- Inherits:
-
Object
- Object
- ReplacerBot::TwitterClient
- Defined in:
- lib/replacer_bot/twitter_client.rb
Class Method Summary collapse
Class Method Details
.client ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/replacer_bot/twitter_client.rb', line 3 def self.client config = { consumer_key: ENV['CONSUMER_KEY'], consumer_secret: ENV['CONSUMER_SECRET'], access_token: ENV['TOKEN'], access_token_secret: ENV['SECRET'] } ::Twitter::REST::Client.new(config) end |