module Pry::SendTweet::TwitterAction::DeleteTweetActions
Public Instance Methods
delete_retweet(retweets)
click to toggle source
# File lib/pry/send_tweet/commands/twitter_action/delete_tweet_actions.rb, line 2 def delete_retweet(retweets) tweets = twitter.unretweet(retweets) if tweets.size == 0 page_error "Are you sure you gave a valid reference to one or more retweets?" else render_tweets tweets, title: bold("Deleted retweets"), timeout: false end rescue Twitter::Error => e page_error(e) end
delete_tweet(tweets)
click to toggle source
# File lib/pry/send_tweet/commands/twitter_action/delete_tweet_actions.rb, line 13 def delete_tweet(tweets) tweets = twitter.destroy_status(tweets) render_tweets tweets, title: bold("Deleted tweets"), timeout: false rescue Twitter::Error => e page_error(e) end