comparison app/models/tweet.rb @ 21:6e3ff830e94a

Realign.
author edogawaconan <me@myconan.net>
date Fri, 05 Sep 2014 23:14:40 +0900
parents 207917e41964
children b82d86b74636
comparison
equal deleted inserted replaced
20:a2f7dfc68f44 21:6e3ff830e94a
10 @timeline ||= @client.user_timeline(@twitter_id) 10 @timeline ||= @client.user_timeline(@twitter_id)
11 end 11 end
12 12
13 def initialize(twitter_id) 13 def initialize(twitter_id)
14 @client = Twitter::REST::Client.new do |config| 14 @client = Twitter::REST::Client.new do |config|
15 CONFIG.each do |cfg_key, cfg_value| 15 CONFIG.each do |cfg_key, cfg_value|
16 config.public_send("#{cfg_key}=", cfg_value) 16 config.public_send("#{cfg_key}=", cfg_value)
17 end 17 end
18 end 18 end
19 @twitter_id = twitter_id 19 @twitter_id = twitter_id
20 end 20 end
21 end 21 end