Class: Awsum::Ec2::SecurityGroup::GroupPermission

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, group, user_id) ⇒ GroupPermission

Returns a new instance of GroupPermission.



62
63
64
65
66
# File 'lib/awsum/ec2/security_group.rb', line 62

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

Instance Attribute Details

#groupObject (readonly)

Returns the value of attribute group.



60
61
62
# File 'lib/awsum/ec2/security_group.rb', line 60

def group
  @group
end

#user_idObject (readonly)

Returns the value of attribute user_id.



60
61
62
# File 'lib/awsum/ec2/security_group.rb', line 60

def user_id
  @user_id
end