Class: Retrobot::TweetFilters::AddInReplyToUrl
- Defined in:
- lib/retrobot/tweet_filters/add_in_reply_to_url.rb
Constant Summary collapse
- TWITTER_BASE_URL =
'https://twitter.com'
Instance Method Summary collapse
- #filter(tweet) ⇒ Object
-
#initialize(retrobot) ⇒ AddInReplyToUrl
constructor
A new instance of AddInReplyToUrl.
Methods inherited from Base
Constructor Details
#initialize(retrobot) ⇒ AddInReplyToUrl
Returns a new instance of AddInReplyToUrl.
11 12 13 |
# File 'lib/retrobot/tweet_filters/add_in_reply_to_url.rb', line 11 def initialize(retrobot) super end |
Instance Method Details
#filter(tweet) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/retrobot/tweet_filters/add_in_reply_to_url.rb', line 15 def filter(tweet) if tweet.in_reply_to_status_id tweet.text = replace_text(tweet.text, tweet.in_reply_to_status_id) tweet else tweet end end |