Method: Ccs::Downloader#initialize

Defined in:
lib/ccs/downloader.rb

#initialize(uri, access_token, passphrase) ⇒ Downloader

Constructs a Downloader instance from a given URI, access token and passphrase.

Examples:

uri = 'ccs://path/to/file.yml'
access_token = 'f30b5450421362c9ca0b'
passphrase = 'my document passphrase'

Ccs::Downloader.new(uri, access_token, passphrase)

Parameters:

  • Document URI. Accepts ccs:// as shorthand for Occson location.

  • Occson access token.

  • Document passphrase, used in encryption and decryption.



19
20
21
22
23
# File 'lib/ccs/downloader.rb', line 19

def initialize(uri, access_token, passphrase)
  @uri = uri
  @access_token = access_token
  @passphrase = passphrase
end