Class: Awsum::Ec2::SecurityGroup::IpPermission
- Inherits:
-
Permission
- Object
- Permission
- Awsum::Ec2::SecurityGroup::IpPermission
- Defined in:
- lib/awsum/ec2/security_group.rb
Instance Attribute Summary collapse
-
#ip ⇒ Object
readonly
Returns the value of attribute ip.
Attributes inherited from Permission
#from_port, #protocol, #to_port
Instance Method Summary collapse
-
#initialize(protocol, from_port, to_port, ip) ⇒ IpPermission
constructor
A new instance of IpPermission.
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
#ip ⇒ Object (readonly)
Returns the value of attribute ip.
51 52 53 |
# File 'lib/awsum/ec2/security_group.rb', line 51 def ip @ip end |