Sha256: 93da42975d458f3642f3339cdc3cffbcfcb535aa91159a8bc770a2481870539a

Contents?: true

Size: 257 Bytes

Versions: 13

Compression:

Stored size: 257 Bytes

Contents

module ThreeScaleToolbox
  module CLI
    class JsonPrinter
      def print_record(record)
        puts JSON.pretty_generate(record)
      end

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
3scale_toolbox-1.0.1 lib/3scale_toolbox/cli/json_printer.rb
3scale_toolbox-1.0.0 lib/3scale_toolbox/cli/json_printer.rb
3scale_toolbox-0.20.0 lib/3scale_toolbox/cli/json_printer.rb
3scale_toolbox-0.19.3 lib/3scale_toolbox/cli/json_printer.rb
3scale_toolbox-0.19.2 lib/3scale_toolbox/cli/json_printer.rb
3scale_toolbox-0.19.1 lib/3scale_toolbox/cli/json_printer.rb
3scale_toolbox-0.19.0 lib/3scale_toolbox/cli/json_printer.rb
3scale_toolbox-0.18.3 lib/3scale_toolbox/cli/json_printer.rb
3scale_toolbox-0.18.2 lib/3scale_toolbox/cli/json_printer.rb
3scale_toolbox-0.18.0 lib/3scale_toolbox/cli/json_printer.rb
3scale_toolbox-0.17.1 lib/3scale_toolbox/cli/json_printer.rb
3scale_toolbox-0.17.0 lib/3scale_toolbox/cli/json_printer.rb
3scale_toolbox-0.16.0 lib/3scale_toolbox/cli/json_printer.rb