Class: Swa::EC2::Vpc
Instance Attribute Summary
Attributes inherited from Resource
#aws_resource
Instance Method Summary
collapse
#tags
Methods inherited from Resource
#data, delegate, #initialize, list
Constructor Details
This class inherits a constructor from Swa::Resource
Instance Method Details
#default_marker ⇒ Object
24
25
26
|
# File 'lib/swa/ec2/vpc.rb', line 24
def default_marker
"*" if vpc.is_default
end
|
#name ⇒ Object
20
21
22
|
# File 'lib/swa/ec2/vpc.rb', line 20
def name
tags["Name"]
end
|
#summary ⇒ Object
11
12
13
14
15
16
17
18
|
# File 'lib/swa/ec2/vpc.rb', line 11
def summary
[
field(vpc, :vpc_id),
pad(default_marker, 1),
field(vpc, :cidr_block),
quoted(name)
].join(" ")
end
|