comparison app/models/tweet.rb @ 23:b82d86b74636

Update variable names.
author edogawaconan <me@myconan.net>
date Fri, 05 Sep 2014 23:26:34 +0900
parents 6e3ff830e94a
children 03f904c070f7
comparison
equal deleted inserted replaced
22:eb07f7dc25eb 23:b82d86b74636
1 class Tweet 1 class Tweet
2 CONFIG = { 2 CONFIG = {
3 :consumer_key => ENV["RT_CONSUMER_KEY"], 3 :consumer_key => ENV["RT_CONSUMER_KEY"],
4 :consumer_secret => ENV["RT_CONSUMER_SECRET"], 4 :consumer_secret => ENV["RT_CONSUMER_SECRET"],
5 :access_token => ENV["RT_OAUTH_TOKEN"], 5 :access_token => ENV["RT_ACCESS_TOKEN"],
6 :access_token_secret => ENV["RT_OAUTH_TOKEN_SECRET"] 6 :access_token_secret => ENV["RT_ACCESS_TOKEN_SECRET"]
7 } 7 }
8 8
9 def timeline 9 def timeline
10 @timeline ||= @client.user_timeline(@twitter_id) 10 @timeline ||= @client.user_timeline(@twitter_id)
11 end 11 end