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