Class: AwsInventory::Presenter::Json
- Defined in:
- lib/aws_inventory/presenters/json.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from AwsInventory::Presenter::Base
Instance Method Details
#display ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/aws_inventory/presenters/json.rb', line 4 def display json_data = { header: data.shift, data: data } puts JSON.pretty_generate(json_data) end |