Class: Awsum::Ec2::SecurityGroup::Permission
- Defined in:
- lib/awsum/ec2/security_group.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Attribute Summary collapse
-
#from_port ⇒ Object
readonly
Returns the value of attribute from_port.
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
-
#to_port ⇒ Object
readonly
Returns the value of attribute to_port.
Instance Method Summary collapse
-
#initialize(protocol, from_port, to_port) ⇒ Permission
constructor
A new instance of Permission.
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_port ⇒ Object (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 |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
40 41 42 |
# File 'lib/awsum/ec2/security_group.rb', line 40 def protocol @protocol end |
#to_port ⇒ Object (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 |