Class: Aws::RailsProvisioner::SubnetSelection
- Inherits:
-
Object
- Object
- Aws::RailsProvisioner::SubnetSelection
- Defined in:
- lib/aws-rails-provisioner/subnet_selection.rb
Instance Attribute Summary collapse
- #name ⇒ String readonly
- #type ⇒ String readonly
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SubnetSelection
constructor
A new instance of SubnetSelection.
Constructor Details
#initialize(options = {}) ⇒ SubnetSelection
Returns a new instance of SubnetSelection.
4 5 6 7 8 9 10 11 |
# File 'lib/aws-rails-provisioner/subnet_selection.rb', line 4 def initialize( = {}) @name = [:name] @type = Aws::RailsProvisioner::Util.subnet_type([:type]) if [:type] if @name && @type msg = "At most one of :type and :name can be supplied." raise Aws::RailsProvisioner::Errors::ValidationError, msg end end |
Instance Attribute Details
#name ⇒ String (readonly)
14 15 16 |
# File 'lib/aws-rails-provisioner/subnet_selection.rb', line 14 def name @name end |
#type ⇒ String (readonly)
17 18 19 |
# File 'lib/aws-rails-provisioner/subnet_selection.rb', line 17 def type @type end |