Method: Unsplash::Photo#unlike!

Defined in:
lib/unsplash/photo.rb

#unlike!Boolean

Unlike a photo for the current user.

Returns:

  • (Boolean)

    True if successful. Will raise on error.



20
21
22
23
# File 'lib/unsplash/photo.rb', line 20

def unlike!
  connection.delete("/photos/#{id}/like")
  true
end