Class: AWS::Glacier::Archive
- Defined in:
- lib/aws/glacier/archive.rb
Instance Attribute Summary collapse
- #archive_id ⇒ String (also: #id) readonly
- #vault ⇒ Vault readonly
Attributes inherited from Resource
Instance Method Summary collapse
-
#delete ⇒ nil
Deletes the current archive.
-
#initialize(vault, archive_id, options = {}) ⇒ Archive
constructor
A new instance of Archive.
Constructor Details
#initialize(vault, archive_id, options = {}) ⇒ Archive
Returns a new instance of Archive.
23 24 25 26 27 |
# File 'lib/aws/glacier/archive.rb', line 23 def initialize vault, archive_id, = {} @vault = vault @archive_id = archive_id super end |
Instance Attribute Details
#archive_id ⇒ String (readonly) Also known as: id
33 34 35 |
# File 'lib/aws/glacier/archive.rb', line 33 def archive_id @archive_id end |
#vault ⇒ Vault (readonly)
30 31 32 |
# File 'lib/aws/glacier/archive.rb', line 30 def vault @vault end |
Instance Method Details
#delete ⇒ nil
Deletes the current archive.
39 40 41 42 |
# File 'lib/aws/glacier/archive.rb', line 39 def delete client.delete_archive() nil end |