Class: Lamma::VpcConfig
- Inherits:
-
Object
- Object
- Lamma::VpcConfig
- Defined in:
- lib/lamma/vpc_config.rb
Instance Method Summary collapse
-
#initialize(yaml) ⇒ VpcConfig
constructor
A new instance of VpcConfig.
- #to_h ⇒ Object
Constructor Details
#initialize(yaml) ⇒ VpcConfig
Returns a new instance of VpcConfig.
3 4 5 6 |
# File 'lib/lamma/vpc_config.rb', line 3 def initialize(yaml) @subnet_ids = yaml.fetch('subnet_ids', nil) @security_group_ids = yaml.fetch('security_group_ids', nil) end |
Instance Method Details
#to_h ⇒ Object
8 9 10 11 12 13 |
# File 'lib/lamma/vpc_config.rb', line 8 def to_h { subnet_ids: @subnet_ids, security_group_ids: @security_group_ids } end |