class DownloadImages
Constants
- API_ROUTE
- QUERY_PARAMS_NAMES
Attributes
accept_language[RW]
asset_id[RW]
Public Instance Methods
execute()
click to toggle source
# File lib/Downloads/DownloadImages.rb, line 32 def execute build_query_params("auto_download", "false") uri = API_ROUTE + "/" + self.asset_id return @http_helper.post(uri, @query_params, nil, accept_language) end
with_accept_language(language)
click to toggle source
# File lib/Downloads/DownloadImages.rb, line 27 def with_accept_language(language) @accept_language = {"Accept-Language" => language} return self end
with_id(asset_id)
click to toggle source
# File lib/Downloads/DownloadImages.rb, line 21 def with_id(asset_id) self.asset_id = asset_id return self end