Class: Ubiq::CredentialsInfo
- Inherits:
-
Object
- Object
- Ubiq::CredentialsInfo
- Defined in:
- lib/ubiq/credentials.rb
Overview
Access Credentials used by the library to validate service calls
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(access_key_id, secret_signing_key, secret_crypto_access_key, host) ⇒ CredentialsInfo
constructor
A new instance of CredentialsInfo.
- #set_attributes ⇒ Object
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_attributes ⇒ Object
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 |