Class: Rudy::AWS::EC2::Group::Rule
- Inherits:
-
Storable
- Object
- Storable
- Rudy::AWS::EC2::Group::Rule
- Defined in:
- lib/rudy/aws/ec2/group.rb
Instance Method Summary collapse
Instance Method Details
#to_s(with_title = false) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/rudy/aws/ec2/group.rb', line 9 def to_s(with_title=false) if self.ports.first == self.ports.last "%s(%s)" % [self.protocol, self.ports.last] else "%s(%s..%s)" % [self.protocol, self.ports.first, self.ports.last] end end |