Class: Rudy::AWS::EC2::Zone

Inherits:
Storable
  • Object
show all
Defined in:
lib/rudy/aws/ec2/zone.rb

Instance Method Summary collapse

Instance Method Details

#liner_noteObject



11
12
13
# File 'lib/rudy/aws/ec2/zone.rb', line 11

def liner_note
  "%-10s  %9s  %s" % [self.name, self.region, self.state]
end

#to_s(titles = false) ⇒ Object



15
16
17
18
# File 'lib/rudy/aws/ec2/zone.rb', line 15

def to_s(titles=false)
  str = titles ? "%-20s   %s#{$/}" % ['name', 'region', 'state'] : ""
  str << liner_note
end