Class: ThreeScaleToolbox::CLI::JsonPrinter
- Inherits:
-
Object
- Object
- ThreeScaleToolbox::CLI::JsonPrinter
- Defined in:
- lib/3scale_toolbox/cli/json_printer.rb
Instance Method Summary collapse
Instance Method Details
#print_collection(collection) ⇒ Object
8 9 10 |
# File 'lib/3scale_toolbox/cli/json_printer.rb', line 8 def print_collection(collection) puts JSON.pretty_generate(collection) end |
#print_record(record) ⇒ Object
4 5 6 |
# File 'lib/3scale_toolbox/cli/json_printer.rb', line 4 def print_record(record) puts JSON.pretty_generate(record) end |