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



12
13
14
15
# File 'lib/fog/aws/models/glacier/vaults.rb', line 12

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

#get(key) ⇒ Object



17
18
19
20
21
22
# File 'lib/fog/aws/models/glacier/vaults.rb', line 17

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