Class: Elbas::AWS::Snapshot
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from Base
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(id) ⇒ Snapshot
constructor
A new instance of Snapshot.
Methods inherited from Base
#aws_access_key, #aws_client, aws_client, #aws_credentials, #aws_region, #aws_secret_key
Constructor Details
#initialize(id) ⇒ Snapshot
Returns a new instance of Snapshot.
6 7 8 |
# File 'lib/elbas/aws/snapshot.rb', line 6 def initialize(id) @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/elbas/aws/snapshot.rb', line 4 def id @id end |
Instance Method Details
#delete ⇒ Object
10 11 12 13 |
# File 'lib/elbas/aws/snapshot.rb', line 10 def delete return unless id aws_client.delete_snapshot snapshot_id: id end |