Class: DeltaCloud::PlainFormatter::FormatObject::Image

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



12
13
14
15
16
17
18
19
20
# File 'lib/plain_formatter.rb', line 12

def format
  sprintf("%-10s | %-20s | %-6s | %-20s | %15s",
      @obj.id[0,10],
      @obj.name ? @obj.name[0, 20]: 'unknown',
      @obj.architecture[0,6],
      @obj.description[0,20],
      @obj.owner_id[0,15]
  )
end