Class Rudy::AWS::EC2::Group::Rule

  1. lib/rudy/aws/ec2/group.rb
Parent: Storable

Methods

public instance

  1. to_s

Public instance methods

to_s (with_title=false)
[show source]
    # File lib/rudy/aws/ec2/group.rb, line 9
 9:       def to_s(with_title=false)
10:         if self.ports.first == self.ports.last
11:           "%s(%s)" % [self.protocol, self.ports.last]
12:         else
13:           "%s(%s..%s)" % [self.protocol, self.ports.first, self.ports.last]
14:         end
15:       end