Method: Twterm::Client#unfavorite
- Defined in:
- lib/twterm/client.rb
#unfavorite(status) ⇒ Object
362 363 364 365 366 367 368 369 370 371 |
# File 'lib/twterm/client.rb', line 362 def unfavorite(status) fail ArgumentError, 'argument must be an instance of Status class' unless status.is_a? Status send_request do rest_client.unfavorite(status.id) end.then do status.unfavorite! end end |