Class: DeltaCloud::PlainFormatter::FormatObject::Realm

Inherits:
Base
  • Object
show all
Defined in:
lib/plain_formatter.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from DeltaCloud::PlainFormatter::FormatObject::Base

Instance Method Details

#formatObject



24
25
26
27
28
29
30
31
# File 'lib/plain_formatter.rb', line 24

def format
  sprintf("%-10s | %-15s | %-5s | %10s GB",
    @obj.id[0, 10],
    @obj.name[0, 15],
    @obj.state[0,5],
    @obj.limit.to_s[0,10]
  )
end