Class: Swa::EC2::Snapshot
- Includes:
- TaggedResource
- Defined in:
- lib/swa/ec2/snapshot.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
Methods included from TaggedResource
Methods inherited from Resource
#data, delegate, #initialize, list
Constructor Details
This class inherits a constructor from Swa::Resource
Instance Method Details
#id ⇒ Object
11 12 13 |
# File 'lib/swa/ec2/snapshot.rb', line 11 def id s.snapshot_id end |
#summary ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/swa/ec2/snapshot.rb', line 15 def summary [ field(s, :snapshot_id), field(s, :volume_id), sprintf("%5d", volume_size), start_time.iso8601, rpad(progress, 4), quoted(description) ].join(" ") end |