Module: Convection::Model::Mixin::CIDRBlock

Included in:
Template::Resource::EC2NetworkACLEntry, Template::Resource::EC2Subnet, Template::Resource::EC2VPC
Defined in:
lib/convection/model/mixin/cidr_block.rb

Overview

Sanitized CIDR IP notation

Instance Method Summary collapse

Instance Method Details

#cidr_property(name = :network, property_name = 'CidrBlock') ⇒ Object



10
11
12
13
# File 'lib/convection/model/mixin/cidr_block.rb', line 10

def cidr_property(name = :network, property_name = 'CidrBlock')
  property(name, property_name,
           :transform => proc { |*args| NetAddr::CIDR.create(*args) })
end