Method: MLS::Account#unfavorite
- Defined in:
- lib/mls/models/account.rb
#unfavorite(listing_id) ⇒ Object
TODO: test me, i don’t work on failures
87 88 89 90 91 92 93 |
# File 'lib/mls/models/account.rb', line 87 def unfavorite(listing_id) # TODO: test me, i don't work on failures listing_id = listing_id.is_a?(MLS::Listing) ? listing_id.id : listing_id MLS.delete("/account/favorites/#{listing_id}") do |response, code| @favorites = nil true end end |