lib/twitter-search-watcher.rb in devfu-twitter-search-watcher-0.1.0 vs lib/twitter-search-watcher.rb in devfu-twitter-search-watcher-0.1.1
- old
+ new
@@ -160,9 +160,10 @@
@max_id_found_so_far = response['max_id'] if response['max_id'] > @max_id_found_so_far
end
def call_tweet_callbacks response, block
response['results'].each do |tweet|
+ tweet['tweet_id'] = tweet.delete 'id'
block.call OpenStruct.new(tweet)
end
end
def escape string