class AwsInventory::Presenter::Base

Public Class Methods

new(options, data) click to toggle source
# File lib/aws_inventory/presenters/base.rb, line 2
def initialize(options, data)
  @options = options
  @data = data
end

Public Instance Methods

data() click to toggle source
# File lib/aws_inventory/presenters/base.rb, line 7
def data
  @options[:header] ? @data : @data[1..-1]  # remove the header row
end