Class: Ubiq::CredentialsInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/ubiq/credentials.rb

Overview

Access Credentials used by the library to validate service calls

Direct Known Subclasses

ConfigCredentials, Credentials

Instance Method Summary collapse

Constructor Details

#initialize(access_key_id, secret_signing_key, secret_crypto_access_key, host) ⇒ CredentialsInfo

Returns a new instance of CredentialsInfo.



11
12
13
14
15
16
# File 'lib/ubiq/credentials.rb', line 11

def initialize(access_key_id, secret_signing_key, secret_crypto_access_key, host)
  @access_key_id = access_key_id
  @secret_signing_key = secret_signing_key
  @secret_crypto_access_key = secret_crypto_access_key
  @host = host
end

Instance Method Details

#set_attributesObject



18
19
20
21
22
23
24
25
# File 'lib/ubiq/credentials.rb', line 18

def set_attributes
  return OpenStruct.new(
    access_key_id: @access_key_id,
    secret_signing_key: @secret_signing_key,
    secret_crypto_access_key: @secret_crypto_access_key,
    host: @host
    )
end