Class: AWS::EC2::SecurityGroup::IpPermissionCollection

Inherits:
Object
  • Object
show all
Includes:
Core::Collection::Simple
Defined in:
lib/aws/ec2/security_group/ip_permission_collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {}
  @security_group = security_group
  @egress = !!options[:egress]
  super
end

Instance Attribute Details

#egressBoolean (readonly) Also known as: egress?

Returns:

  • (Boolean)


32
33
34
# File 'lib/aws/ec2/security_group/ip_permission_collection.rb', line 32

def egress
  @egress
end

#security_groupSecurityGroup (readonly)

Returns:



29
30
31
# File 'lib/aws/ec2/security_group/ip_permission_collection.rb', line 29

def security_group
  @security_group
end