Method: Unsplash::Photo#track_download

Defined in:
lib/unsplash/photo.rb

#track_downloadString

Track the download of a photo.

Returns:

  • (String)

    URL of image file for download.



27
28
29
# File 'lib/unsplash/photo.rb', line 27

def track_download
  connection.get(links.download_location)["url"]
end