Method: Toptranslation::Resource::Document#download_url

Defined in:
lib/toptranslation/resource/document.rb

#download_url(locale_code, options = {}) ⇒ Object



22
23
24
25
# File 'lib/toptranslation/resource/document.rb', line 22

def download_url(locale_code, options = {})
  params = { file_format: options[:file_format], locale_code: locale_code }.compact
  @connection.get("/documents/#{@identifier}/download", params: params)['download_url']
end