# File lib/aws/ec2/network_acl/entry.rb, line 21 def initialize network_acl, details @network_acl = network_acl @rule_number = details[:rule_number] @protocol = details[:protocol].to_i @action = details[:rule_action].to_sym @egress = details[:egress] @ingress = !@egress @cidr_block = details[:cidr_block] if type_code = details[:icmp_type_code] @icmp_type = type_code[:type] @icmp_code = type_code[:code] end if range = details[:port_range] @port_range = (range[:from]..range[:to]) end end