Class: AWS::EC2::SecurityGroup::IpPermissionCollection
- Inherits:
-
Object
- Object
- AWS::EC2::SecurityGroup::IpPermissionCollection
- Includes:
- Core::Collection::Simple
- Defined in:
- lib/aws/ec2/security_group/ip_permission_collection.rb
Direct Known Subclasses
Instance Attribute Summary collapse
- #egress ⇒ Boolean (also: #egress?) readonly
- #security_group ⇒ SecurityGroup readonly
Instance Method Summary collapse
-
#initialize(security_group, options = {}) ⇒ IpPermissionCollection
constructor
A new instance of IpPermissionCollection.
Methods included from Core::Collection
#each, #each_batch, #enum, #first, #in_groups_of, #page
Constructor Details
#initialize(security_group, options = {}) ⇒ IpPermissionCollection
Returns a new instance of IpPermissionCollection.
22 23 24 25 26 |
# File 'lib/aws/ec2/security_group/ip_permission_collection.rb', line 22 def initialize security_group, = {} @security_group = security_group @egress = !![:egress] super end |
Instance Attribute Details
#egress ⇒ Boolean (readonly) Also known as: egress?
32 33 34 |
# File 'lib/aws/ec2/security_group/ip_permission_collection.rb', line 32 def egress @egress end |
#security_group ⇒ SecurityGroup (readonly)
29 30 31 |
# File 'lib/aws/ec2/security_group/ip_permission_collection.rb', line 29 def security_group @security_group end |