Class: AwsDump::Account
- Inherits:
-
Hash
- Object
- Hash
- AwsDump::Account
- Defined in:
- lib/aws_dump/account.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Account
constructor
A new instance of Account.
- #regions ⇒ Object
Constructor Details
#initialize(name, options = {}) ⇒ Account
Returns a new instance of Account.
7 8 9 10 11 12 13 |
# File 'lib/aws_dump/account.rb', line 7 def initialize(name, = {}) = self[:name] = name AWS.memoize do self[:regions] = regions.sort end end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
5 6 7 |
# File 'lib/aws_dump/account.rb', line 5 def end |
Instance Method Details
#regions ⇒ Object
15 16 17 18 19 |
# File 'lib/aws_dump/account.rb', line 15 def regions aws.regions.collect do |region| Region.new(self, region) end end |