Methods

DeltaCloud::PlainFormatter::FormatObject::HardwareProfile

Public Instance Methods

format() click to toggle source
# File lib/plain_formatter.rb, line 50
def format
  architecture = @obj.architecture ? @obj.architecture.value[0,6] : 'opaque'
  memory = @obj.memory ? @obj.memory.value.to_s[0,10] : 'opaque'
  storage = @obj.storage ? @obj.storage.value.to_s[0,10] : 'opaque'
  sprintf("%-15s | %-6s | %10s | %10s ", @obj.id[0, 15],
   architecture , memory, storage)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.