class AwsInventory::Presenter
Public Class Methods
new(options, data)
click to toggle source
# File lib/aws_inventory/presenter.rb, line 7 def initialize(options, data) @options = options @data = data end
Public Instance Methods
display()
click to toggle source
# File lib/aws_inventory/presenter.rb, line 12 def display presenter_class = "AwsInventory::Presenter::#{format.classify}".constantize presenter = presenter_class.new(@options, @data) presenter.display end
format()
click to toggle source
Formats: tabs, markdown
# File lib/aws_inventory/presenter.rb, line 19 def format ENV['AWS_INVENTORY_FORMAT'] || "table" end