Method: Ccs::Downloader#call

Defined in:
lib/ccs/downloader.rb

#callString|nil

Performs the download and decryption of document.



29
30
31
32
33
34
35
36
# File 'lib/ccs/downloader.rb', line 29

def call
  response = http.request(request)
  body = response.body
  return unless response.code.eql? '200'
  json = JSON.parse body

  Decrypter.new(@passphrase, json['encrypted_content']).call
end