Class: AWSEdges::VPC
- Inherits:
-
Object
- Object
- AWSEdges::VPC
- Defined in:
- lib/aws-edges/vpc.rb
Instance Attribute Summary collapse
-
#nodes ⇒ Object
readonly
Returns the value of attribute nodes.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(describe_vpcs) ⇒ VPC
constructor
A new instance of VPC.
Constructor Details
#initialize(describe_vpcs) ⇒ VPC
Returns a new instance of VPC.
5 6 7 8 9 10 11 12 13 |
# File 'lib/aws-edges/vpc.rb', line 5 def initialize(describe_vpcs) @nodes = Array.new describe_vpcs[:vpc_set].each{|v| @nodes.push({ :vpc_id => v[:vpc_id], :cidr_block => v[:cidr_block] }) } end |
Instance Attribute Details
#nodes ⇒ Object (readonly)
Returns the value of attribute nodes.
3 4 5 |
# File 'lib/aws-edges/vpc.rb', line 3 def nodes @nodes end |
Class Method Details
.supported_fields ⇒ Object
15 16 17 |
# File 'lib/aws-edges/vpc.rb', line 15 def self.supported_fields [ "vpc_id", "cidr_block" ] end |