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