Class: AwsDump::Account

Inherits:
Hash
  • Object
show all
Defined in:
lib/aws_dump/account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {})
  @options = options
  self[:name] = name
  AWS.memoize do
    self[:regions] = regions.sort
  end
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



5
6
7
# File 'lib/aws_dump/account.rb', line 5

def options
  @options
end

Instance Method Details

#regionsObject



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