module Pry::SendTweet::TwitterAction::MuteActions
Public Instance Methods
mute_user(strings)
click to toggle source
# File lib/pry/send_tweet/commands/twitter_action/mute_actions.rb, line 2 def mute_user(strings) muted = twitter.mute(*search_str_for_users(*strings)) if muted.size > 0 page numbered_list("Muted users", muted) {|user, index| render_user(user) } else page_error "No one was muted, did you mute those user(s) already ..?" end rescue Twitter::Error => e page_error(e) end
unmute_user(strings)
click to toggle source
# File lib/pry/send_tweet/commands/twitter_action/mute_actions.rb, line 15 def unmute_user(strings) unmuted = twitter.unmute(*search_str_for_users(*strings)) page numbered_list("Unmuted users", unmuted) {|user, index| render_user(user) } rescue Twitter::Error => e page_error(e) end