Sha256: ba14ecb8b98de563cd3b670bcbb7845d243f749e5c55c7c0acc0514548a456ea
Contents?: true
Size: 276 Bytes
Versions: 2
Compression:
Stored size: 276 Bytes
Contents
# frozen_string_literal: true module TokyoApi class ExternalImage < Base def base_path 'external_image' end def track_download(photo_id) client.post_request("#{normalized_base_path}#{url_escape(photo_id)}/download").status == 204 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tokyo_api-1.9.0 | lib/tokyo_api/external_image.rb |
tokyo_api-1.8.0 | lib/tokyo_api/external_image.rb |