class ThreeScaleToolbox::CLI::PrinterTransformer
Public Instance Methods
call(output_format)
click to toggle source
# File lib/3scale_toolbox/cli/output_flag.rb, line 4 def call(output_format) raise unless %w[yaml json].include?(output_format) case output_format when 'yaml' YamlPrinter.new when 'json' JsonPrinter.new end end