Class: Awsum::Ec2::Snapshot
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#progress ⇒ Object
readonly
Returns the value of attribute progress.
-
#start_time ⇒ Object
readonly
Returns the value of attribute start_time.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#volume_id ⇒ Object
readonly
Returns the value of attribute volume_id.
Instance Method Summary collapse
-
#delete ⇒ Object
Delete this Snapshot.
-
#initialize(ec2, id, volume_id, status, start_time, progress) ⇒ Snapshot
constructor
:nodoc:.
Constructor Details
#initialize(ec2, id, volume_id, status, start_time, progress) ⇒ Snapshot
:nodoc:
6 7 8 9 10 11 12 13 |
# File 'lib/ec2/snapshot.rb', line 6 def initialize(ec2, id, volume_id, status, start_time, progress) #:nodoc: @ec2 = ec2 @id = id @volume_id = volume_id @status = status @start_time = start_time @progress = progress end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/ec2/snapshot.rb', line 4 def id @id end |
#progress ⇒ Object (readonly)
Returns the value of attribute progress.
4 5 6 |
# File 'lib/ec2/snapshot.rb', line 4 def progress @progress end |
#start_time ⇒ Object (readonly)
Returns the value of attribute start_time.
4 5 6 |
# File 'lib/ec2/snapshot.rb', line 4 def start_time @start_time end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/ec2/snapshot.rb', line 4 def status @status end |
#volume_id ⇒ Object (readonly)
Returns the value of attribute volume_id.
4 5 6 |
# File 'lib/ec2/snapshot.rb', line 4 def volume_id @volume_id end |
Instance Method Details
#delete ⇒ Object
Delete this Snapshot
16 17 18 |
# File 'lib/ec2/snapshot.rb', line 16 def delete @ec2.delete_snapshot id end |