Class: Elbas::AWS::Snapshot

Inherits:
Base
  • Object
show all
Defined in:
lib/elbas/aws/snapshot.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#aws_counterpart

Instance Method Summary collapse

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

#idObject (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

#deleteObject



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