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



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

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

#get(key) ⇒ Object



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

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