class Rudy::AWS::EC2::Group::Rule

Public Instance Methods

to_s(with_title=false) click to toggle source
# 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