class Ubiq::Credentials

Class where the credentials can be explicitly set or will use the Environment variables instead

Public Class Methods

new(papi, sapi, srsa, host) click to toggle source
# 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

Public Instance Methods

get_attributes() click to toggle source
# File lib/ubiq/credentials.rb, line 100
def get_attributes
  return @creds
end