class ThreeScaleToolbox::Commands::MetricsCommand::Apply::CustomPrinter
Attributes
option_disabled[R]
option_enabled[R]
Public Class Methods
new(options)
click to toggle source
# File lib/3scale_toolbox/commands/metrics_command/apply_command.rb, line 8 def initialize(options) @option_disabled = options[:disabled] @option_enabled = options[:enabled] end
Public Instance Methods
print_collection(collection)
click to toggle source
# File lib/3scale_toolbox/commands/metrics_command/apply_command.rb, line 20 def print_collection(collection) end
print_record(metric)
click to toggle source
# File lib/3scale_toolbox/commands/metrics_command/apply_command.rb, line 13 def print_record(metric) output_msg_array = ["Applied metric id: #{metric['id']}"] output_msg_array << 'Disabled' if option_disabled output_msg_array << 'Enabled' if option_enabled puts output_msg_array.join('; ') end