Class: ThreeScaleToolbox::Commands::PlansCommand::Create::CustomPrinter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_defaultObject (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_disabledObject (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



17
# File 'lib/3scale_toolbox/commands/plans_command/create_command.rb', line 17

def print_collection(collection) end


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