Method: Twterm::RESTClient#unfollow

Defined in:
lib/twterm/rest_client.rb

#unfollow(*user_ids) ⇒ Object



328
329
330
331
332
333
334
335
336
# File 'lib/twterm/rest_client.rb', line 328

def unfollow(*user_ids)
  send_request do
    rest_client.unfollow(*user_ids)
  end.then do |users|
    users.each do |user|
      friendship_repository.unfollow(self.user_id, user.id)
    end
  end
end