Class: AwsInventory::Presenter::Table

Inherits:
Base
  • Object
show all
Defined in:
lib/aws_inventory/presenters/table.rb

Instance Method Summary collapse

Methods inherited from Base

#data, #initialize

Constructor Details

This class inherits a constructor from AwsInventory::Presenter::Base

Instance Method Details

#displayObject



4
5
6
7
8
9
# File 'lib/aws_inventory/presenters/table.rb', line 4

def display
  table = Text::Table.new
  table.head = data.shift
  table.rows = data
  puts table
end