class ThreeScaleToolbox::Commands::MetricsCommand::Create::CustomPrinter
Attributes
option_disabled[R]
Public Class Methods
new(options)
click to toggle source
# File lib/3scale_toolbox/commands/metrics_command/create_command.rb, line 8 def initialize(options) @option_disabled = options[:disabled] end
Public Instance Methods
print_collection(collection)
click to toggle source
# File lib/3scale_toolbox/commands/metrics_command/create_command.rb, line 16 def print_collection(collection) end
print_record(metric)
click to toggle source
# File lib/3scale_toolbox/commands/metrics_command/create_command.rb, line 12 def print_record(metric) puts "Created metric id: #{metric['id']}. Disabled: #{option_disabled}" end