Class: DeltaCloud::PlainFormatter::FormatObject::Image
- Defined in:
- lib/plain_formatter.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from DeltaCloud::PlainFormatter::FormatObject::Base
Instance Method Details
#format ⇒ Object
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 |