Class: ThreeScaleToolbox::Commands::MetricsCommand::Create::CustomPrinter

Inherits:
Object
  • Object
show all
Defined in:
lib/3scale_toolbox/commands/metrics_command/create_command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ CustomPrinter

Returns a new instance of CustomPrinter.



8
9
10
# File 'lib/3scale_toolbox/commands/metrics_command/create_command.rb', line 8

def initialize(options)
  @option_disabled = options[:disabled]
end

Instance Attribute Details

#option_disabledObject (readonly)

Returns the value of attribute option_disabled.



6
7
8
# File 'lib/3scale_toolbox/commands/metrics_command/create_command.rb', line 6

def option_disabled
  @option_disabled
end

Instance Method Details



16
# File 'lib/3scale_toolbox/commands/metrics_command/create_command.rb', line 16

def print_collection(collection) end


12
13
14
# 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