Sha256: 8e1a3ef312be4dda45516543b5f747a36f3e8346a04d89898115d2e6e46b1609

Contents?: true

Size: 216 Bytes

Versions: 4

Compression:

Stored size: 216 Bytes

Contents

require "json"

class AwsInventory::Presenter::Json < AwsInventory::Presenter::Base
  def display
    json_data = {
      header: data.shift,
      data: data
    }
    puts JSON.pretty_generate(json_data)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aws-inventory-0.4.5 lib/aws_inventory/presenters/json.rb
aws-inventory-0.4.3 lib/aws_inventory/presenters/json.rb
aws-inventory-0.4.2 lib/aws_inventory/presenters/json.rb
aws-inventory-0.4.0 lib/aws_inventory/presenters/json.rb