Method: Ubiq::Credentials#initialize
- Defined in:
- lib/ubiq/credentials.rb
#initialize(papi, sapi, srsa, host) ⇒ Credentials
Returns a new instance of Credentials.
91 92 93 94 95 96 |
# File 'lib/ubiq/credentials.rb', line 91 def initialize(papi, sapi, srsa, host) @access_key_id = papi.present? ? papi : ENV['UBIQ_ACCESS_KEY_ID'] @secret_signing_key = sapi.present? ? sapi : ENV['UBIQ_SECRET_SIGNING_KEY'] @secret_crypto_access_key = srsa.present? ? srsa : ENV['UBIQ_SECRET_CRYPTO_ACCESS_KEY'] @host = host.present? ? host : ENV['UBIQ_SERVER'] end |