Class: Lamma::VpcConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/lamma/vpc_config.rb

Instance Method Summary collapse

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_hObject



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