Class: DeltaCloud::PlainFormatter::FormatObject::HardwareProfile

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



35
36
37
38
# File 'lib/plain_formatter.rb', line 35

def format
  sprintf("%-15s | %-6s | %10s | %10s ", @obj.id[0, 15],
    @obj.architecture.value[0,6], @obj.memory.value.to_s[0,10], @obj.storage.value.to_s[0,10])
end