Class: AwsCredVault::Account
- Inherits:
-
Object
- Object
- AwsCredVault::Account
- Defined in:
- lib/aws_cred_vault/account.rb
Instance Attribute Summary collapse
-
#bastions ⇒ Object
readonly
Returns the value of attribute bastions.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#users ⇒ Object
readonly
Returns the value of attribute users.
Instance Method Summary collapse
- #add_bastion(bastion) ⇒ Object
- #add_user(user) ⇒ Object
-
#initialize(name) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(name) ⇒ Account
Returns a new instance of Account.
6 7 8 9 10 |
# File 'lib/aws_cred_vault/account.rb', line 6 def initialize name @name = name @users = [] @bastions = [] end |
Instance Attribute Details
#bastions ⇒ Object (readonly)
Returns the value of attribute bastions.
5 6 7 |
# File 'lib/aws_cred_vault/account.rb', line 5 def bastions @bastions end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/aws_cred_vault/account.rb', line 5 def name @name end |
#users ⇒ Object (readonly)
Returns the value of attribute users.
5 6 7 |
# File 'lib/aws_cred_vault/account.rb', line 5 def users @users end |
Instance Method Details
#add_bastion(bastion) ⇒ Object
16 17 18 |
# File 'lib/aws_cred_vault/account.rb', line 16 def add_bastion bastion @bastions << bastion end |
#add_user(user) ⇒ Object
12 13 14 |
# File 'lib/aws_cred_vault/account.rb', line 12 def add_user user @users << user end |