Class: ThreeScaleToolbox::Commands::MetricsCommand::Create::CustomPrinter
- Inherits:
-
Object
- Object
- ThreeScaleToolbox::Commands::MetricsCommand::Create::CustomPrinter
- Defined in:
- lib/3scale_toolbox/commands/metrics_command/create_command.rb
Instance Attribute Summary collapse
-
#option_disabled ⇒ Object
readonly
Returns the value of attribute option_disabled.
Instance Method Summary collapse
-
#initialize(options) ⇒ CustomPrinter
constructor
A new instance of CustomPrinter.
- #print_collection(collection) ⇒ Object
- #print_record(metric) ⇒ Object
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() @option_disabled = [:disabled] end |
Instance Attribute Details
#option_disabled ⇒ Object (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
#print_collection(collection) ⇒ Object
16 |
# File 'lib/3scale_toolbox/commands/metrics_command/create_command.rb', line 16 def print_collection(collection) end |
#print_record(metric) ⇒ Object
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 |