Class: Aws::RailsProvisioner::Vpc::Subnet
- Inherits:
-
Object
- Object
- Aws::RailsProvisioner::Vpc::Subnet
- Defined in:
- lib/aws-rails-provisioner/vpc.rb
Instance Attribute Summary collapse
-
#cidr_mask ⇒ Object
readonly
Returns the value of attribute cidr_mask.
-
#subnet_name ⇒ Object
readonly
Returns the value of attribute subnet_name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(options) ⇒ Subnet
constructor
A new instance of Subnet.
Constructor Details
#initialize(options) ⇒ Subnet
Returns a new instance of Subnet.
96 97 98 99 100 |
# File 'lib/aws-rails-provisioner/vpc.rb', line 96 def initialize() @subnet_name = .fetch(:subnet_name) @cidr_mask = .fetch(:cidr_mask) @type = Aws::RailsProvisioner::Utils.subnet_type(.fetch(:type)) end |
Instance Attribute Details
#cidr_mask ⇒ Object (readonly)
Returns the value of attribute cidr_mask.
104 105 106 |
# File 'lib/aws-rails-provisioner/vpc.rb', line 104 def cidr_mask @cidr_mask end |
#subnet_name ⇒ Object (readonly)
Returns the value of attribute subnet_name.
102 103 104 |
# File 'lib/aws-rails-provisioner/vpc.rb', line 102 def subnet_name @subnet_name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
106 107 108 |
# File 'lib/aws-rails-provisioner/vpc.rb', line 106 def type @type end |