class ThreeScaleToolbox::Commands::PoliciesCommand::ExportSubcommand::SerializerTransformer
Public Instance Methods
call(output_format)
click to toggle source
# File lib/3scale_toolbox/commands/policies_command/export_command.rb, line 20 def call(output_format) raise unless %w[yaml json].include?(output_format) case output_format when 'yaml' YAMLSerializer.new when 'json' JSONSerializer.new end end