Method: Unsplash::Photo#like!

Defined in:
lib/unsplash/photo.rb

#like!Boolean

Like a photo for the current user.

Returns:

  • (Boolean)

    True if successful. Will raise on error.



13
14
15
16
# File 'lib/unsplash/photo.rb', line 13

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