Class: AWS::Glacier::Archive

Inherits:
Resource
  • Object
show all
Defined in:
lib/aws/glacier/archive.rb

Instance Attribute Summary collapse

Attributes inherited from Resource

#account_id

Instance Method Summary collapse

Constructor Details

#initialize(vault, archive_id, options = {}) ⇒ Archive

Returns a new instance of Archive.

Parameters:

  • vault (Vault)
  • archive_id (String)
  • options (Hash) (defaults to: {})

Options Hash (options):

  • :account_id (String)


23
24
25
26
27
# File 'lib/aws/glacier/archive.rb', line 23

def initialize vault, archive_id, options = {}
  @vault = vault
  @archive_id = archive_id
  super
end

Instance Attribute Details

#archive_idString (readonly) Also known as: id

Returns:

  • (String)


33
34
35
# File 'lib/aws/glacier/archive.rb', line 33

def archive_id
  @archive_id
end

#vaultVault (readonly)

Returns:



30
31
32
# File 'lib/aws/glacier/archive.rb', line 30

def vault
  @vault
end

Instance Method Details

#deletenil

Deletes the current archive.

Returns:

  • (nil)


39
40
41
42
# File 'lib/aws/glacier/archive.rb', line 39

def delete
  client.delete_archive(resource_options)
  nil
end