Class: Awsum::Ec2::SecurityGroup::Permission

Inherits:
Object
  • Object
show all
Defined in:
lib/awsum/ec2/security_group.rb

Overview

:nodoc:

Direct Known Subclasses

GroupPermission, IpPermission

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(protocol, from_port, to_port) ⇒ Permission

Returns a new instance of Permission.



42
43
44
45
46
# File 'lib/awsum/ec2/security_group.rb', line 42

def initialize(protocol, from_port, to_port)
  @protocol = protocol
  @from_port = from_port.to_i
  @to_port = to_port.to_i
end

Instance Attribute Details

#from_portObject (readonly)

Returns the value of attribute from_port.



40
41
42
# File 'lib/awsum/ec2/security_group.rb', line 40

def from_port
  @from_port
end

#protocolObject (readonly)

Returns the value of attribute protocol.



40
41
42
# File 'lib/awsum/ec2/security_group.rb', line 40

def protocol
  @protocol
end

#to_portObject (readonly)

Returns the value of attribute to_port.



40
41
42
# File 'lib/awsum/ec2/security_group.rb', line 40

def to_port
  @to_port
end