Class: Fog::AWS::Glacier::Vaults

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/aws/models/glacier/vaults.rb

Instance Method Summary collapse

Instance Method Details

#allObject



9
10
11
12
# File 'lib/fog/aws/models/glacier/vaults.rb', line 9

def all
  data = service.list_vaults.body['VaultList']
  load(data)
end

#get(key) ⇒ Object



14
15
16
17
18
19
# File 'lib/fog/aws/models/glacier/vaults.rb', line 14

def get(key)
  data = service.describe_vault(key).body
  new(data)
rescue Excon::Errors::NotFound
  nil
end