Class: ThreeScaleToolbox::CLI::JsonPrinter

Inherits:
Object
  • Object
show all
Defined in:
lib/3scale_toolbox/cli/json_printer.rb

Instance Method Summary collapse

Instance Method Details



8
9
10
# File 'lib/3scale_toolbox/cli/json_printer.rb', line 8

def print_collection(collection)
  puts JSON.pretty_generate(collection)
end


4
5
6
# File 'lib/3scale_toolbox/cli/json_printer.rb', line 4

def print_record(record)
  puts JSON.pretty_generate(record)
end