Class: Swa::EC2::Snapshot

Inherits:
Resource show all
Includes:
TaggedResource
Defined in:
lib/swa/ec2/snapshot.rb

Instance Attribute Summary

Attributes inherited from Resource

#aws_resource

Instance Method Summary collapse

Methods included from TaggedResource

#tags

Methods inherited from Resource

#data, delegate, #initialize, list

Constructor Details

This class inherits a constructor from Swa::Resource

Instance Method Details

#summaryObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/swa/ec2/snapshot.rb', line 11

def summary
  [
    field(s, :snapshot_id),
    field(s, :volume_id),
    sprintf("%5d", s.volume_size),
    s.start_time.iso8601,
    rpad(s.progress, 4),
    quoted(s.description)
  ].join("  ")
end