Class: ThreeScaleToolbox::Commands::PlansCommand::Create::CustomPrinter
- Inherits:
-
Object
- Object
- ThreeScaleToolbox::Commands::PlansCommand::Create::CustomPrinter
- Defined in:
- lib/3scale_toolbox/commands/plans_command/create_command.rb
Instance Attribute Summary collapse
-
#option_default ⇒ Object
readonly
Returns the value of attribute option_default.
-
#option_disabled ⇒ Object
readonly
Returns the value of attribute option_disabled.
Instance Method Summary collapse
-
#initialize(option_default, option_disabled) ⇒ CustomPrinter
constructor
A new instance of CustomPrinter.
- #print_collection(collection) ⇒ Object
- #print_record(plan) ⇒ Object
Constructor Details
#initialize(option_default, option_disabled) ⇒ CustomPrinter
Returns a new instance of CustomPrinter.
8 9 10 11 |
# File 'lib/3scale_toolbox/commands/plans_command/create_command.rb', line 8 def initialize(option_default, option_disabled) @option_default = option_default @option_disabled = option_disabled end |
Instance Attribute Details
#option_default ⇒ Object (readonly)
Returns the value of attribute option_default.
6 7 8 |
# File 'lib/3scale_toolbox/commands/plans_command/create_command.rb', line 6 def option_default @option_default end |
#option_disabled ⇒ Object (readonly)
Returns the value of attribute option_disabled.
6 7 8 |
# File 'lib/3scale_toolbox/commands/plans_command/create_command.rb', line 6 def option_disabled @option_disabled end |
Instance Method Details
#print_collection(collection) ⇒ Object
17 |
# File 'lib/3scale_toolbox/commands/plans_command/create_command.rb', line 17 def print_collection(collection) end |
#print_record(plan) ⇒ Object
13 14 15 |
# File 'lib/3scale_toolbox/commands/plans_command/create_command.rb', line 13 def print_record(plan) puts "Created application plan id: #{plan['id']}. Default: #{option_default}; Disabled: #{option_disabled}" end |