Class: CredStash::Config
- Inherits:
-
Object
- Object
- CredStash::Config
- Defined in:
- lib/cred_stash/config.rb
Instance Attribute Summary collapse
-
#dynamo_client ⇒ Object
Returns the value of attribute dynamo_client.
-
#kms_client ⇒ Object
Returns the value of attribute kms_client.
-
#storage ⇒ Object
Returns the value of attribute storage.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #reset! ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
15 16 17 |
# File 'lib/cred_stash/config.rb', line 15 def initialize reset! end |
Instance Attribute Details
#dynamo_client ⇒ Object
Returns the value of attribute dynamo_client.
13 14 15 |
# File 'lib/cred_stash/config.rb', line 13 def dynamo_client @dynamo_client end |
#kms_client ⇒ Object
Returns the value of attribute kms_client.
13 14 15 |
# File 'lib/cred_stash/config.rb', line 13 def kms_client @kms_client end |
#storage ⇒ Object
Returns the value of attribute storage.
13 14 15 |
# File 'lib/cred_stash/config.rb', line 13 def storage @storage end |
#table_name ⇒ Object
Returns the value of attribute table_name.
13 14 15 |
# File 'lib/cred_stash/config.rb', line 13 def table_name @table_name end |
Instance Method Details
#reset! ⇒ Object
19 20 21 22 23 24 |
# File 'lib/cred_stash/config.rb', line 19 def reset! @table_name = 'credential-store' @storage = :dynamodb @kms_client = Aws::KMS::Client.new @dynamo_client = Aws::DynamoDB::Client.new end |