Class: HammerCLI::Output::Adapter::TreeStructure

Inherits:
Abstract
  • Object
show all
Defined in:
lib/hammer_cli/output/adapter/tree_structure.rb

Direct Known Subclasses

Json, Yaml

Instance Method Summary collapse

Methods inherited from Abstract

#initialize, #print_collection, #print_error, #print_message, #print_record, #tags

Constructor Details

This class inherits a constructor from HammerCLI::Output::Adapter::Abstract

Instance Method Details

#prepare_collection(fields, collection) ⇒ Object



4
5
6
7
8
# File 'lib/hammer_cli/output/adapter/tree_structure.rb', line 4

def prepare_collection(fields, collection)
  collection.map do |element|
    render_fields(fields, element)
  end
end