Class: OpenStax::Aws::SecretsSet
- Inherits:
-
Object
- Object
- OpenStax::Aws::SecretsSet
- Defined in:
- lib/openstax/aws/secrets_set.rb
Instance Method Summary collapse
- #create ⇒ Object
- #delete ⇒ Object
-
#initialize(secrets_array) ⇒ SecretsSet
constructor
A new instance of SecretsSet.
- #update ⇒ Object
Constructor Details
#initialize(secrets_array) ⇒ SecretsSet
Returns a new instance of SecretsSet.
4 5 6 |
# File 'lib/openstax/aws/secrets_set.rb', line 4 def initialize(secrets_array) @secrets_array = [secrets_array].flatten end |
Instance Method Details
#create ⇒ Object
8 9 10 |
# File 'lib/openstax/aws/secrets_set.rb', line 8 def create @secrets_array.each(&:create) end |
#delete ⇒ Object
16 17 18 |
# File 'lib/openstax/aws/secrets_set.rb', line 16 def delete @secrets_array.each(&:delete) end |
#update ⇒ Object
12 13 14 |
# File 'lib/openstax/aws/secrets_set.rb', line 12 def update @secrets_array.map(&:update).any? end |