Mercurial > rsstweet
comparison app/models/tweet.rb @ 138:7907fe886675
Better use symbol?
author | nanaya <me@nanaya.pro> |
---|---|
date | Wed, 13 Dec 2017 03:46:32 +0900 |
parents | 00dc9346dfaa |
children | 88d7a7714d4e |
comparison
equal
deleted
inserted
replaced
137:00dc9346dfaa | 138:7907fe886675 |
---|---|
55 | 55 |
56 def client | 56 def client |
57 @clients[client_config_id] ||= | 57 @clients[client_config_id] ||= |
58 Twitter::REST::Client.new do |config| | 58 Twitter::REST::Client.new do |config| |
59 $cfg[:twitter][client_config_id].each do |cfg_key, cfg_value| | 59 $cfg[:twitter][client_config_id].each do |cfg_key, cfg_value| |
60 config.public_send("#{cfg_key}=", cfg_value) | 60 config.public_send(:"#{cfg_key}=", cfg_value) |
61 end | 61 end |
62 end | 62 end |
63 end | 63 end |
64 | 64 |
65 def client_config_id | 65 def client_config_id |