Method: CryptKeeper::Connection#initialize
- Defined in:
- lib/crypt_keeper.rb
#initialize(*args) ⇒ Connection
Returns a new instance of Connection.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/crypt_keeper.rb', line 23 def initialize(*args) = { :signature_identifier => "GOOG1", :host => "commondatastorage.googleapis.com", :port => "80" } .merge!(args.pop) if args.last.kind_of? Hash @host = [:host] @access_key = [:access_key] @secret_key = [:secret_key] @signature_id = [:signature_identifier] @@http_instance = CryptKeeperHttp.new(@host, @access_key, @secret_key, @signature_id) end |