Class: Awsum::Ec2::SecurityGroup::IpPermission

Inherits:
Permission show all
Defined in:
lib/awsum/ec2/security_group.rb

Instance Attribute Summary collapse

Attributes inherited from Permission

#from_port, #protocol, #to_port

Instance Method Summary collapse

Constructor Details

#initialize(protocol, from_port, to_port, ip) ⇒ IpPermission

Returns a new instance of IpPermission.



53
54
55
56
# File 'lib/awsum/ec2/security_group.rb', line 53

def initialize(protocol, from_port, to_port, ip)
  super(protocol, from_port, to_port)
  @ip = ip
end

Instance Attribute Details

#ipObject (readonly)

Returns the value of attribute ip.



51
52
53
# File 'lib/awsum/ec2/security_group.rb', line 51

def ip
  @ip
end